From: Max Kellermann Date: Sat, 10 Oct 2009 13:47:35 +0000 (+0200) Subject: list_window: disable support for second column on --enable-mini X-Git-Tag: release-0.16~148 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=54371cb6e4479a9b135226359e243ca8665cbe13;p=ncmpc.git list_window: disable support for second column on --enable-mini --- diff --git a/src/list_window.c b/src/list_window.c index 15ca07a..be4648d 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -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)