diff options
| author | Josh Wainwright <josh.wainwright@ldra.com> | 2016-04-21 10:37:30 +0100 |
|---|---|---|
| committer | Josh Wainwright <josh.wainwright@ldra.com> | 2016-04-21 10:37:30 +0100 |
| commit | 3e47a926e7687d52ac2df06d5b664afd4f644971 (patch) | |
| tree | 0dc4c980d4a1fd6230b16153cf52ab9b2c6c57ee | |
| parent | d920bb915373f556943f08c63760894efc222b73 (diff) | |
| download | vis-3e47a926e7687d52ac2df06d5b664afd4f644971.tar.gz vis-3e47a926e7687d52ac2df06d5b664afd4f644971.tar.xz | |
Use dofile() rather than require() to run lua test code
| -rw-r--r-- | lua/visrc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/visrc.lua b/lua/visrc.lua index 2c8ff78..cdb8e1c 100644 --- 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 |
