vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 9ae64af4acfed9a68b9d86b7dbc231aac43d28df
parent d6300d4551b375f0c64dcaa267fcf13a701bb3aa
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 12 Mar 2016 15:55:50 +0100

ui: make primary cursor blink even if no lua theme has been loaded

Diffstat:
Mui-curses.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui-curses.c b/ui-curses.c @@ -956,10 +956,10 @@ static UiWin *ui_window_new(Ui *ui, View *view, File *file, enum UiOption option win->styles[i] = style; } - style.attr |= A_REVERSE; - win->styles[UI_STYLE_CURSOR] = style; - win->styles[UI_STYLE_SELECTION] = style; - win->styles[UI_STYLE_COLOR_COLUMN] = style; + win->styles[UI_STYLE_CURSOR].attr |= A_REVERSE; + win->styles[UI_STYLE_CURSOR_PRIMARY].attr |= A_REVERSE|A_BLINK; + win->styles[UI_STYLE_SELECTION].attr |= A_REVERSE; + win->styles[UI_STYLE_COLOR_COLUMN].attr |= A_REVERSE; win->ui = uic; win->view = view;