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
This commit is contained in:
Timo Sirainen 2001-01-31 11:23:29 +00:00 committed by cras
commit 2a31ecaa32
3 changed files with 20 additions and 8 deletions

View file

@ -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);