From 9e776fae96d12c41f59edd2862a73e98dfcf51ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 12 Jan 2017 21:53:00 +0100 Subject: 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. --- lua/visrc.lua | 2 +- vis/visrc.lua | 2 +- 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..'') vis:command(string.format("w! '%s.out'", name)) + vis:command('qall!') end - vis:command('qall!') end -- cgit v1.2.3