aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 344874b..0d9c24e 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -2852,7 +2852,7 @@ void vis_lua_quit(Vis *vis) {
*/
static bool vis_lua_input(Vis *vis, const char *key, size_t len) {
lua_State *L = vis->lua;
- if (!L || vis->win->file->internal)
+ if (!L || !vis->win || vis->win->file->internal)
return false;
bool ret = false;
vis_lua_event_get(L, "input");