Code

list_window: removed unnecessary reverse wattroff
authorThomas Jansen <mithi@mithi.net>
Thu, 29 Oct 2009 19:52:29 +0000 (20:52 +0100)
committerThomas Jansen <mithi@mithi.net>
Thu, 29 Oct 2009 19:52:29 +0000 (20:52 +0100)
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.

src/list_window.c

index 23e478f2d43f0855a1560b2bd30300b6e6787464..822805c9b186b7f3d6345ec3499ad04a76a38840 100644 (file)
@@ -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 &&