mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
back to "Irssi didn't always remove the statusbar item from screen when it
should have." bug - this time with right-aligned items :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2065 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0be0cc8198
commit
99120dc508
@ -276,8 +276,17 @@ static void statusbar_calc_item_positions(STATUSBAR_REC *bar)
|
||||
for (tmp = bar->items; tmp != NULL; tmp = tmp->next) {
|
||||
SBAR_ITEM_REC *rec = tmp->data;
|
||||
|
||||
if (rec->config->right_alignment && rec->size > 0)
|
||||
right_items = g_slist_prepend(right_items, rec);
|
||||
if (rec->config->right_alignment) {
|
||||
if (rec->size > 0)
|
||||
right_items = g_slist_prepend(right_items, rec);
|
||||
else if (rec->current_size > 0) {
|
||||
/* item was hidden - set the dirty position
|
||||
to begin from the item's old xpos */
|
||||
irssi_set_dirty();
|
||||
bar->dirty = TRUE;
|
||||
bar->dirty_xpos = rec->xpos;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rxpos = term_width;
|
||||
|
Loading…
Reference in New Issue
Block a user