From d555c905bfd2aed879a912da7b4446b6374981ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 24 Mar 2017 13:38:34 +0100 Subject: vis: properly redraw status bar of windows displaying internal files Currently the only "internal window" with a status bar is the information window used to display Lua stack traces. We do not want to trigger events for it, because that could result in further Lua errors. Nonetheless its status bar should be properly redrawn to avoid display artifacts. That is why we fall back to the built-in default status bar as used by non-Lua builds. --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 8f09491..19e0cdb 100644 --- a/vis.c +++ b/vis.c @@ -108,7 +108,7 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { case VIS_EVENT_WIN_STATUS: { Win *win = va_arg(ap, Win*); - if (win->file->internal) + if (win->file->internal && id != VIS_EVENT_WIN_STATUS) break; if (vis->event->win_open && id == VIS_EVENT_WIN_OPEN) { vis->event->win_open(vis, win); -- cgit v1.2.3