aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
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;