From 41804da41dedf214b70e1998e0c23a162a19760d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 17 Mar 2017 21:36:38 +0100 Subject: vis: fix selection background color --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vis.c b/vis.c index 48ec9ba..f25ec8f 100644 --- 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; -- cgit v1.2.3