Skip to content

Commit

Permalink
fix primary cursor color display
Browse files Browse the repository at this point in the history
  • Loading branch information
nobody committed May 20, 2024
1 parent 777b11c commit 00e10a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 00e10a7

Please sign in to comment.