Code

screen_browser: removed unnecessary reverse wattroff.
authorThomas Jansen <mithi@mithi.net>
Thu, 29 Oct 2009 09:12:15 +0000 (10:12 +0100)
committerThomas Jansen <mithi@mithi.net>
Thu, 29 Oct 2009 09:12:15 +0000 (10:12 +0100)
All cases internally use row_paint_text that in turn uses row_color and
sets the A_REVERSE attribute for the new row. We do not need to switch it
off manually.

src/screen_browser.c

index 0d3eb87808b96b63b60446d6ef6a1aa983288da7..ef6614167d31f30a21c03f2834cedf40152b0a0b 100644 (file)
@@ -560,9 +560,6 @@ screen_browser_paint_callback(WINDOW *w, unsigned i,
                row_paint_text(w, width, highlight ? COLOR_LIST_BOLD : COLOR_LIST,
                               selected, "<unknown>");
        }
-
-       if (selected)
-               wattroff(w, A_REVERSE);
 }
 
 void