From 087ca3a7fdb9c0d35d31780b1836b6d8608f05b9 Mon Sep 17 00:00:00 2001 From: Gennadiy Volkov Date: Sat, 29 Feb 2020 13:55:33 +1100 Subject: Set single cursor style as primary, not secondary --- vis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 3cca4fa..6b4bbf2 100644 --- a/vis.c +++ b/vis.c @@ -402,7 +402,6 @@ static void window_draw_cursor(Win *win, Selection *cur, CellStyle *style, CellS static void window_draw_selections(Win *win) { View *view = win->view; Filerange viewport = view_viewport_get(view); - bool multiple_cursors = view_selections_count(view) > 1; Selection *sel = view_selections_primary_get(view); CellStyle style_cursor = win->ui->style_get(win->ui, UI_STYLE_CURSOR); CellStyle style_cursor_primary = win->ui->style_get(win->ui, UI_STYLE_CURSOR_PRIMARY); @@ -415,7 +414,7 @@ static void window_draw_selections(Win *win) { window_draw_cursor(win, s, &style_cursor, &style_selection); } window_draw_selection(win->view, sel, &style_selection); - window_draw_cursor(win, sel, multiple_cursors ? &style_cursor_primary : &style_cursor, &style_selection); + window_draw_cursor(win, sel, &style_cursor_primary, &style_selection); for (Selection *s = view_selections_next(sel); s; s = view_selections_next(s)) { window_draw_selection(win->view, s, &style_selection); size_t pos = view_cursors_pos(s); -- cgit v1.2.3