vis

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

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

commit e93968d47216747e933543afb9f79136d5a451e6
parent 8eeea7acd025f509ecf89c9f6d1f7aa78b9f1cde
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 17 Mar 2017 21:36:38 +0100

vis: fix selection background color

Diffstat:
Mvis.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vis.c b/vis.c @@ -383,7 +383,7 @@ static void window_draw_selection(View *view, Cursor *cur, CellStyle *style) { int col = (l == start_line) ? start_col : 0; int end = (l == end_line) ? end_col : l->width; while (col < end) { - if (cell_color_equal(l->cells[col].style.fg, style->fg)) { + if (cell_color_equal(l->cells[col].style.fg, style->bg)) { CellStyle old = l->cells[col].style; l->cells[col].style.fg = old.bg; l->cells[col].style.bg = old.fg;