From: Thomas Jansen Date: Thu, 29 Oct 2009 19:52:29 +0000 (+0100) Subject: list_window: removed unnecessary reverse wattroff X-Git-Tag: release-0.16~55 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=15dbc768a552f5174326e27ba288defa99b20f05;p=ncmpc.git list_window: removed unnecessary reverse wattroff In all callback functions row_color is used to initialize the reverse attribute for each new line. No need to switch it off explicitly in between. --- diff --git a/src/list_window.c b/src/list_window.c index 23e478f..822805c 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -398,9 +398,6 @@ list_window_paint2(const struct list_window *lw, paint_callback(lw->w, lw->start + i, i, lw->cols, selected, callback_data); - - if (selected) - wattroff(lw->w, A_REVERSE); } if (options.hardware_cursor && lw->selected >= lw->start &&