aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c3
1 files changed, 1 insertions, 2 deletions
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);