vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 6d9be7524d1bb7db769b361e54d55282c8dc218f
parent de7a6c02e0fdc49f5fe8a660ed56a833a7649dd2
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 26 May 2016 19:39:02 +0200

ui: properly redraw status line when window focus changes

Diffstat:
Mui-curses.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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); }