aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-11 10:06:24 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-03-11 10:06:24 +0100
commite5ee84281b5dc984be1857e6bdb72b3895c6e3a4 (patch)
tree5ad075760f7007a8bc8235e94b5c75d34377dfde /ui-curses.c
parentca50d217dc37d4f408c9d2f4696572e1c698a831 (diff)
downloadvis-e5ee84281b5dc984be1857e6bdb72b3895c6e3a4.tar.gz
vis-e5ee84281b5dc984be1857e6bdb72b3895c6e3a4.tar.xz
ui: also blink primary cursor if it is on a blank cell
Diffstat (limited to 'ui-curses.c')
-rw-r--r--ui-curses.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui-curses.c b/ui-curses.c
index 44dd18e..3d45b62 100644
--- a/ui-curses.c
+++ b/ui-curses.c
@@ -709,7 +709,10 @@ static void ui_window_draw(UiWin *w) {
prev_style = style;
}
wattrset(win->win, attr);
- waddstr(win->win, l->cells[x].data);
+ if (multiple_cursors && l->cells[x].cursor_primary && l->cells[x].data[0] == ' ')
+ waddstr(win->win, "█");
+ else
+ waddstr(win->win, l->cells[x].data);
}
/* try to fixup display issues, in theory we should always output a full line */
int x, y;