From cd928420669ec18e75394ce0cdbc0bfc328307ec Mon Sep 17 00:00:00 2001 From: Thomas Jansen Date: Thu, 29 Oct 2009 10:03:34 +0100 Subject: [PATCH] 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. --- src/screen_browser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.30.2