From 8a3529541a6758ed6473d41837336b22b4f84406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 17 Nov 2016 10:49:58 +0100 Subject: test: use :qall! to terminate tests This should make sure that vis always terminates and never hangs waiting for further input. Lua errors in particular cause a new window/file to be displayed showing a detailed error message. Previously only this internal file was closed but the original file remained open and prevented vis from exiting. --- lua/visrc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/visrc.lua b/lua/visrc.lua index 9210c26..ed23e60 100644 --- a/lua/visrc.lua +++ b/lua/visrc.lua @@ -9,5 +9,5 @@ vis.events.win_open = function(win) lua_file = string.gsub(in_file, '%.in$', '.lua') dofile(lua_file) end - vis:command('q!') + vis:command('qall!') end -- cgit v1.2.3