vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit b5ea30909de9ef6ec913e963457ddac0bf2b8e53 parent 4942a984a153f2b1b04e425fea1c98a3eeaaf1f7 Author: nobody <nobody@host.invalid> Date: Sun, 19 May 2024 22:56:26 -0300 fix primary cursor color display Diffstat:
| M | vis.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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; }