diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-08 12:59:27 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-08 13:37:24 +0100 |
| commit | cdecc540371bce1ca3666559b1da7adfe7363db2 (patch) | |
| tree | 027f240ba8374c73a09fb01e6af86cc7db723acb | |
| parent | fd7fe7f3c24a388fe41391004c85573f52a127f1 (diff) | |
| download | vis-cdecc540371bce1ca3666559b1da7adfe7363db2.tar.gz vis-cdecc540371bce1ca3666559b1da7adfe7363db2.tar.xz | |
ui: try to make sure that selected text is still visible
| -rw-r--r-- | ui-curses.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
