From cdecc540371bce1ca3666559b1da7adfe7363db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 8 Nov 2015 12:59:27 +0100 Subject: ui: try to make sure that selected text is still visible --- ui-curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-curses.c') diff --git a/ui-curses.c b/ui-curses.c index 313f3d6..d8f83a9 100644 --- a/ui-curses.c +++ b/ui-curses.c @@ -670,7 +670,7 @@ static void ui_window_draw(UiWin *w) { prev_style = NULL; } else if (l->cells[x].selected) { if (style->fg == selection_bg) - attr = style_to_attr(&win->styles[UI_STYLE_SELECTION]); + attr |= A_REVERSE; else attr = style->attr | COLOR_PAIR(color_pair_get(style->fg, selection_bg)); prev_style = NULL; -- cgit v1.2.3