summaryrefslogtreecommitdiff
path: root/src/core/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 7326cf81..4c57db71 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -650,7 +650,7 @@ int get_max_column_count(GSList *items, COLUMN_LEN_FUNC len_func,
}
for (n = max_columns-1; n >= 0; n--) {
- if (columns_width[n] <= max_width)
+ if (columns_width[n] <= max_width && columns[n][n] > 0)
break;
}
ret = n+1;