mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
statusbar was a bit broken when using split windows
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1487 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
749e70cad6
commit
f89d89b0e7
3 changed files with 12 additions and 0 deletions
|
|
@ -133,9 +133,14 @@ static void statusbar_get_sizes(STATUSBAR_REC *bar, int max_width)
|
|||
|
||||
static void statusbar_redraw_line(STATUSBAR_REC *bar)
|
||||
{
|
||||
WINDOW_REC *old_active_win;
|
||||
GSList *tmp;
|
||||
int xpos, rxpos;
|
||||
|
||||
old_active_win = active_win;
|
||||
if (bar->window != NULL)
|
||||
active_win = bar->window->active;
|
||||
|
||||
statusbar_get_sizes(bar, COLS-2);
|
||||
|
||||
xpos = 1;
|
||||
|
|
@ -159,6 +164,8 @@ static void statusbar_redraw_line(STATUSBAR_REC *bar)
|
|||
rec->func(rec, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
active_win = old_active_win;
|
||||
}
|
||||
|
||||
static void statusbar_redraw_all(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue