summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-15 02:31:36 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-15 02:31:36 +0000
commitdcb652bc4d8542f947f84606a975ba141f714ad9 (patch)
treea8390c1c403c82e847da38eb701cb4d16435e75f
parent87777968c3ed367f51524ca1d1aa5bcd2e5ed7a9 (diff)
downloadirssi-dcb652bc4d8542f947f84606a975ba141f714ad9.zip
when some statusbar item was forced to be removed because of lack of space,
it still used 2 chars. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1387 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-text/statusbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index 4299835a..ead2b454 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -83,7 +83,7 @@ static void statusbar_shrink_forced(GSList *items, int size, int max_width)
if (size-rec->size > max_width) {
/* remove the whole item */
- size -= rec->size-1; /* -1 == the marginal */
+ size -= rec->size+1; /* +1 == the marginal */
rec->size = 0;
} else {
/* shrink the item */