From 00e10a7f233bfd741dbbd73bbe2ef217b25f5a12 Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 19 May 2024 22:56:26 -0300 Subject: [PATCH] fix primary cursor color display --- vis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vis.c b/vis.c index dca90c141..cabad6780 100644 --- a/vis.c +++ b/vis.c @@ -398,7 +398,8 @@ static void window_draw_cursor(Win *win, Selection *cur) { int col = view_cursors_cell_get(cur); if (!line || col == -1) return; - win->ui->style_set(win->ui, &line->cells[col], UI_STYLE_CURSOR); + Selection *primary = view_selections_primary_get(win->view); + win->ui->style_set(win->ui, &line->cells[col], primary == cur ? UI_STYLE_CURSOR_PRIMARY : UI_STYLE_CURSOR); window_draw_cursor_matching(win, cur); return; }