From: Thomas Jansen Date: Thu, 29 Oct 2009 09:03:34 +0000 (+0100) Subject: screen_browser: removed duplicate line clearing X-Git-Tag: release-0.16~58 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd928420669ec18e75394ce0cdbc0bfc328307ec;p=ncmpc.git screen_browser: removed duplicate line clearing whline(w, ' ', width); was used to clean the rest of the line. The new function row_paint_text takes care of that already, so we don't have to do it twice. We had to switch the default case to row_paint_text as well to cover all possibilities. This fixes a bug where the last digit of the playtime of the last visible row in the browse screen was overwritten with a space character. --- diff --git a/src/screen_browser.c b/src/screen_browser.c index 52d76f1..985be38 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -562,11 +562,10 @@ screen_browser_paint_callback(WINDOW *w, unsigned i, break; default: - waddstr(w, ""); + row_paint_text(w, width, highlight ? COLOR_LIST_BOLD : COLOR_LIST, + selected, ""); } - whline(w, ' ', width); - if (selected) wattroff(w, A_REVERSE); }