aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-03-17 21:36:38 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-03-17 21:36:38 +0100
commit41804da41dedf214b70e1998e0c23a162a19760d (patch)
tree3e1a311c45e0d873a4d87a2f2cd4a119998d51a1 /vis.c
parent47762a1be8127514a6e0da13607bb77f961b7508 (diff)
downloadvis-41804da41dedf214b70e1998e0c23a162a19760d.tar.gz
vis-41804da41dedf214b70e1998e0c23a162a19760d.tar.xz
vis: fix selection background color
Diffstat (limited to 'vis.c')
-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;