aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-02 22:44:09 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-02 22:44:09 +0100
commitd024b3415e7467ae23de6997978f7b9f36572c61 (patch)
treef94fc61696e85280b4052d92a7ddeff222328926 /ui-curses.c
parentc4aaea6a0ec0438d6bd0da1c0650fe5ff272abe6 (diff)
downloadvis-d024b3415e7467ae23de6997978f7b9f36572c61.tar.gz
vis-d024b3415e7467ae23de6997978f7b9f36572c61.tar.xz
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 (limited to 'ui-curses.c')
-rw-r--r--ui-curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-curses.c b/ui-curses.c
index 08e2bef..e9e72fd 100644
--- 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;