vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a9f938b1a4437445f772661b629d340f5d6aa5bd parent b9909ed677326ac2d296fa3b9cdbb0d8f3945092 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 12 Jan 2017 21:53:00 +0100 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. Diffstat:
| M | lua/visrc.lua | | | 2 | +- |
| M | vis/visrc.lua | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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 @@ -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