vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 0abd55e970a1c1c7ffe407e4f01caa3c037fd44d parent b52a3547b758b7eeff447f3e3db0de9ec636573f Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 2 Nov 2016 22:44:09 +0100 ui: correctly display cell attributes When multiple selections are being displayed and the selection orientation is changed, the complete primary selection was wrongly colored in the style of the primary cursor. Diffstat:
| M | ui-curses.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-curses.c b/ui-curses.c @@ -695,7 +695,7 @@ static void ui_window_draw(UiWin *w) { prev_style = NULL; } else if (l->cells[x].selected) { if (style->fg == selection_bg) - attr |= A_REVERSE; + attr = style->attr | A_REVERSE; else attr = style->attr | COLOR_PAIR(color_pair_get(style->fg, selection_bg)); prev_style = NULL;