From 9d9993607c9093bd59a02138f5e51f1c678e17e9 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 28 Feb 2021 21:46:18 -0500 Subject: fix find highlighting when cursor is on same line --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buffer.c') diff --git a/buffer.c b/buffer.c index 54931ce..a3d9c51 100644 --- a/buffer.c +++ b/buffer.c @@ -2167,7 +2167,7 @@ void buffer_render(TextBuffer *buffer, Rect r) { // the rectangle that the cursor is rendered as Rect cursor_rect = rect(cursor_display_pos, V2(settings->cursor_width, char_height)); - { // highlight line cursor is on + if (!buffer->is_line_buffer) { // highlight line cursor is on Rect hl_rect = rect(V2(x1, cursor_display_pos.y), V2(x2-x1-1, char_height)); buffer_clip_rect(buffer, &hl_rect); gl_geometry_rect(hl_rect, colors[COLOR_CURSOR_LINE_BG]); -- cgit v1.2.3