mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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:
parent
4145834a4f
commit
3a2cc3b937
4 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue