From 2a31ecaa32439f440d8a5cce81b9809b61658e3b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 31 Jan 2001 11:23:29 +0000 Subject: 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 --- src/fe-text/statusbar.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/fe-text/statusbar.c') 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); -- cgit v1.2.3