Topic bar doesn't get erased anymore after resize.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@582 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-08-10 20:50:06 +00:00 committed by cras
commit 3a2cc3b937
4 changed files with 7 additions and 3 deletions

View file

@ -56,8 +56,11 @@ static void statusbar_redraw_line(STATUSBAR_REC *bar)
for (tmp = bar->items; tmp != NULL; tmp = tmp->next) {
SBAR_ITEM_REC *rec = tmp->data;
if (!rec->right_justify && xpos+rec->size < COLS) {
if (!rec->right_justify &&
(rec->max_size || xpos+rec->size < COLS)) {
rec->xpos = xpos;
if (rec->max_size)
rec->size = COLS-1-xpos;
func = (STATUSBAR_FUNC) rec->func;
func(rec, bar->ypos);