diff options
author | pommicket <pommicket@gmail.com> | 2023-03-03 18:01:34 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-03 18:01:34 -0500 |
commit | fb342182983ffdb0aae0497f5cbcb71b0b291023 (patch) | |
tree | 31fdc46c095fb7fe2d8f8f0d21f1d3a310fc1afc /buffer.c | |
parent | fb342637d3b2553daf4659967f35e8e26bd26eb1 (diff) |
different read/write colors for ide-highlights
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |