summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-31 11:23:29 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-31 11:23:29 +0000
commit2a31ecaa32439f440d8a5cce81b9809b61658e3b (patch)
tree6582e5409d9861f43aeac0468bd4f1303b7ff24c /src/fe-text/statusbar.c
parent8acf2cd5f97906877107b6a547bc939d134beaa2 (diff)
downloadirssi-2a31ecaa32439f440d8a5cce81b9809b61658e3b.zip
Ugly quick hack to make act: never disappear but print as much activity
to statusbar as fits. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1172 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/statusbar.c')
-rw-r--r--src/fe-text/statusbar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index 30f18efe..775bc87a 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -57,11 +57,15 @@ static void statusbar_redraw_line(STATUSBAR_REC *bar)
SBAR_ITEM_REC *rec = tmp->data;
if (!rec->right_justify &&
- (rec->max_size || xpos+rec->size < COLS)) {
+ (rec->max_size || xpos < COLS)) {
rec->xpos = xpos;
if (rec->max_size)
rec->size = COLS-1-xpos;
+ rec->shrinked = xpos+rec->size >= COLS;
+ if (rec->shrinked)
+ rec->size = COLS-1-xpos;
+
func = (STATUSBAR_FUNC) rec->func;
func(rec, bar->ypos);