From 3e47a926e7687d52ac2df06d5b664afd4f644971 Mon Sep 17 00:00:00 2001 From: Josh Wainwright Date: Thu, 21 Apr 2016 10:37:30 +0100 Subject: Use dofile() rather than require() to run lua test code --- lua/visrc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') 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 -- cgit v1.2.3