From 83240617231287430df799d84746a8f6448d9a20 Mon Sep 17 00:00:00 2001 From: Thomas Nordlander Date: Thu, 28 Jun 2007 21:08:21 +0300 Subject: [PATCH] Display selected line in the settings view as active --- ui_curses.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui_curses.c b/ui_curses.c index 9de63cc..8306379 100644 --- a/ui_curses.c +++ b/ui_curses.c @@ -646,13 +646,14 @@ static void print_help(struct window *win, int row, struct iter *iter) struct iter sel; int selected; int pos; + int active = 1; char buf[512]; const struct help_entry *e = iter_to_help_entry(iter); const struct cmus_opt *opt; window_get_sel(win, &sel); selected = iters_equal(iter, &sel); - bkgdset(pairs[selected << 1]); + bkgdset(pairs[(active << 2) | (selected << 1)]); if (selected) { cursor_x = 0; -- 2.11.4.GIT