diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-17 10:49:58 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-17 10:49:58 +0100 |
| commit | 8a3529541a6758ed6473d41837336b22b4f84406 (patch) | |
| tree | a280cc6434d7d5eb6455eac489c2e212a8f1367d /lua | |
| parent | 2a8fc1f049b04a969e4bb73df817303a82925a11 (diff) | |
| download | vis-8a3529541a6758ed6473d41837336b22b4f84406.tar.gz vis-8a3529541a6758ed6473d41837336b22b4f84406.tar.xz | |
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.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/visrc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
