mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
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:
parent
8acf2cd5f9
commit
2a31ecaa32
3 changed files with 20 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue