diff options
| author | Gennadiy Volkov <git@gennadiy.33mail.com> | 2020-02-29 13:55:33 +1100 |
|---|---|---|
| committer | Gennadiy Volkov <git@gennadiy.33mail.com> | 2020-03-17 23:33:33 +1100 |
| commit | 087ca3a7fdb9c0d35d31780b1836b6d8608f05b9 (patch) | |
| tree | 10f9c64c9e2a1b3afcf3006ebc72a567afda9051 | |
| parent | 9fd9b1810c445e31d4599eb72e2fce3e67aa9c4c (diff) | |
| download | vis-087ca3a7fdb9c0d35d31780b1836b6d8608f05b9.tar.gz vis-087ca3a7fdb9c0d35d31780b1836b6d8608f05b9.tar.xz | |
Set single cursor style as primary, not secondary
| -rw-r--r-- | vis.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |
