mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
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
This commit is contained in:
parent
adf8b864fc
commit
f5ea5348c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user