diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-28 16:27:09 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-28 16:27:09 +0000 |
commit | f5ea5348c074f991749699b50face5de1b110103 (patch) | |
tree | 4ee9ffa72d1b587b2587d08918a24e7346b17171 /src | |
parent | adf8b864fc8647f8fbc281ed81fdb1008b12bcba (diff) | |
download | irssi-f5ea5348c074f991749699b50face5de1b110103.zip |
get_max_column_count(): we didn't handle correctly a situation where
last column of the list was empty
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1165 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/misc.c | 2 |
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; |