summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d056396)
raw | patch | inline | side by side (parent: d056396)
author | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 16:05:32 +0000 (18:05 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 16:05:32 +0000 (18:05 +0200) |
src/list_window.c | patch | blob | history |
diff --git a/src/list_window.c b/src/list_window.c
index 2a7db368ced999192e91fd62de6790eaf0965884..10e06292ad605719ff677f75b9f76d9646689d7e 100644 (file)
--- a/src/list_window.c
+++ b/src/list_window.c
#ifdef NCMPC_MINI
second_column = NULL;
+ highlight = false;
#endif /* NCMPC_MINI */
if (second_column != NULL) {
{
unsigned i;
bool show_cursor = !lw->hide_cursor;
- bool highlight = false;
show_cursor = show_cursor &&
(!options.hardware_cursor || lw->range_selection);
for (i = 0; i < lw->rows; i++) {
const char *label;
+ bool highlight = false;
char *second_column = NULL;
- highlight = false;
wmove(lw->w, i, 0);
label = callback(lw->start + i, &highlight, &second_column, callback_data);
assert(label != NULL);
+#ifdef NCMPC_MINI
+ highlight = false;
+ second_column = NULL;
+#endif /* NCMPC_MINI */
+
list_window_paint_row(lw->w, i, lw->cols,
show_cursor &&
lw->start + i >= lw->selected_start &&