Code

list_window: disable support for second column on --enable-mini
authorMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 13:47:35 +0000 (15:47 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 13:47:35 +0000 (15:47 +0200)
src/list_window.c

index 15ca07aa08a08a056562d835bd16c0f9130ade9f..be4648df54cc8a02aec95a1ab2dd46836f98f70c 100644 (file)
@@ -320,6 +320,10 @@ list_window_paint_row(WINDOW *w, unsigned y, unsigned width,
        unsigned text_width = utf8_width(text);
        unsigned second_column_width;
 
+#ifdef NCMPC_MINI
+       second_column = NULL;
+#endif /* NCMPC_MINI */
+
        if (second_column != NULL) {
                second_column_width = utf8_width(second_column) + 1;
                if (second_column_width < width)