From 4c51bc9755e8ebf5c67c78c75b881d4526fc10f5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 11 Jun 2001 15:05:08 +0000 Subject: [PATCH] get_max_column_count() didn't work properly if items had wider items than max_width. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1551 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/misc.c b/src/core/misc.c index 7a2c54d2..1af327af 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -674,7 +674,7 @@ int get_max_column_count(GSList *items, COLUMN_LEN_FUNC len_func, item_pos++; } - for (n = max_columns-1; n > 1; n--) { + for (n = max_columns-1; n >= 1; n--) { if (columns_width[n] <= max_width && columns[n][n] > 0) break;