vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 75924042986fab6648ae1407c65c8fbc035a2ed7 parent 057ca2350229e9d01be07e081715279915cbe4fe Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 8 Nov 2015 12:59:27 +0100 ui: try to make sure that selected text is still visible Diffstat:
| M | ui-curses.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-curses.c b/ui-curses.c @@ -670,7 +670,7 @@ static void ui_window_draw(UiWin *w) { prev_style = NULL; } else if (l->cells[x].selected) { if (style->fg == selection_bg) - attr = style_to_attr(&win->styles[UI_STYLE_SELECTION]); + attr |= A_REVERSE; else attr = style->attr | COLOR_PAIR(color_pair_get(style->fg, selection_bg)); prev_style = NULL;