From d024b3415e7467ae23de6997978f7b9f36572c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 2 Nov 2016 22:44:09 +0100 Subject: 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. --- ui-curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3