summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-06-11 15:05:08 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-06-11 15:05:08 +0000
commit4c51bc9755e8ebf5c67c78c75b881d4526fc10f5 (patch)
treed349c5e3d1f26e2adbf57eada2af984568f0b355 /src
parent0192a6fb97dbabb7a16e4013834712100ab25c2b (diff)
downloadirssi-4c51bc9755e8ebf5c67c78c75b881d4526fc10f5.zip
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
Diffstat (limited to 'src')
-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 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;