mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
0192a6fb97
commit
4c51bc9755
@ -674,7 +674,7 @@ int get_max_column_count(GSList *items, COLUMN_LEN_FUNC len_func,
|
|||||||
item_pos++;
|
item_pos++;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (n = max_columns-1; n > 1; n--) {
|
for (n = max_columns-1; n >= 1; n--) {
|
||||||
if (columns_width[n] <= max_width &&
|
if (columns_width[n] <= max_width &&
|
||||||
columns[n][n] > 0)
|
columns[n][n] > 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user