aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-01-12 21:53:00 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-12 21:53:00 +0100
commit9e776fae96d12c41f59edd2862a73e98dfcf51ac (patch)
treedcf105f18307db749dd90fd64a7b048b9d2d6476
parente6d4c35a80b2aed4a0b60ba9d32599545e0a36fd (diff)
downloadvis-9e776fae96d12c41f59edd2862a73e98dfcf51ac.tar.gz
vis-9e776fae96d12c41f59edd2862a73e98dfcf51ac.tar.xz
tests: make :help output actually visible
The problem is that :qall in the win open event would immediately close the window before anyting gets executed.
-rw-r--r--lua/visrc.lua2
-rw-r--r--vis/visrc.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/visrc.lua b/lua/visrc.lua
index ed23e60..af40306 100644
--- a/lua/visrc.lua
+++ b/lua/visrc.lua
@@ -8,6 +8,6 @@ vis.events.win_open = function(win)
-- use the corresponding test.lua file
lua_file = string.gsub(in_file, '%.in$', '.lua')
dofile(lua_file)
+ vis:command('qall!')
end
- vis:command('qall!')
end
diff --git a/vis/visrc.lua b/vis/visrc.lua
index ce5466d..e19efed 100644
--- a/vis/visrc.lua
+++ b/vis/visrc.lua
@@ -12,6 +12,6 @@ vis.events.win_open = function(win)
file:close()
vis:feedkeys(keys..'<Escape>')
vis:command(string.format("w! '%s.out'", name))
+ vis:command('qall!')
end
- vis:command('qall!')
end