summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-03 18:01:34 -0500
committerpommicket <pommicket@gmail.com>2023-03-03 18:01:34 -0500
commitfb342182983ffdb0aae0497f5cbcb71b0b291023 (patch)
tree31fdc46c095fb7fe2d8f8f0d21f1d3a310fc1afc /buffer.c
parentfb342637d3b2553daf4659967f35e8e26bd26eb1 (diff)
different read/write colors for ide-highlights
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index aa9e165..bb7fabf 100644
--- a/buffer.c
+++ b/buffer.c
@@ -3152,7 +3152,7 @@ void buffer_toggle_comment_selection(TextBuffer *buffer) {
}
-void buffer_highlight_lsp_range(TextBuffer *buffer, LSPRange range) {
+void buffer_highlight_lsp_range(TextBuffer *buffer, LSPRange range, ColorSetting color) {
Font *font = buffer_font(buffer);
const u32 *colors = buffer_settings(buffer)->colors;
const float char_height = text_font_char_height(font);
@@ -3164,7 +3164,7 @@ void buffer_highlight_lsp_range(TextBuffer *buffer, LSPRange range) {
vec2 b = buffer_pos_to_pixels(buffer, range_end);
b.y += char_height;
Rect r = rect_endpoints(a, b); buffer_clip_rect(buffer, &r);
- gl_geometry_rect(r, colors[COLOR_HOVER_HL]);
+ gl_geometry_rect(r, colors[color]);
} else if (range_end.line - range_start.line < 1000) { // prevent gigantic highlights from slowing things down
// multiple lines.
vec2 a = buffer_pos_to_pixels(buffer, range_start);