diff options
| -rw-r--r-- | ui-curses.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui-curses.c b/ui-curses.c index d4131da..fe3a966 100644 --- a/ui-curses.c +++ b/ui-curses.c @@ -855,8 +855,11 @@ static void ui_window_focus(UiWin *w) { UiCursesWin *win = (UiCursesWin*)w; UiCursesWin *oldsel = win->ui->selwin; win->ui->selwin = win; - if (oldsel) + if (oldsel) { + view_draw(oldsel->view); ui_window_draw((UiWin*)oldsel); + } + view_draw(win->view); ui_window_draw(w); } |
