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. --- vis/visrc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis') diff --git a/vis/visrc.lua b/vis/visrc.lua index a6ece31..ce5466d 100644 --- a/vis/visrc.lua +++ b/vis/visrc.lua @@ -13,5 +13,5 @@ vis.events.win_open = function(win) vis:feedkeys(keys..'') vis:command(string.format("w! '%s.out'", name)) end - vis:command('q!') + vis:command('qall!') end -- cgit v1.2.3