vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit d4e5dcf4f841be6eb191606105320ebe007d31a0 parent 7e82dc2457412bfb83fc4349c51973c8d674d21f Author: Josh Wainwright <josh.wainwright@ldra.com> Date: Thu, 21 Apr 2016 10:37:30 +0100 Use dofile() rather than require() to run lua test code Diffstat:
| M | lua/visrc.lua | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lua/visrc.lua b/lua/visrc.lua @@ -1,11 +1,11 @@ -require("utils") +dofile("utils.lua") vis.events = {} vis.events.win_open = function(win) -- test.in file passed to vis in_file = win.file.name -- use the corresponding test.lua file - lua_file = string.gsub(in_file, '%.in$', '') - require(lua_file) + lua_file = string.gsub(in_file, '%.in$', '.lua') + dofile(lua_file) vis:command('q!') end