aboutsummaryrefslogtreecommitdiff
path: root/test/lua/visrc.lua
blob: 9210c2655739fbf811b94e959ab7a1b9e08bd92e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
dofile("utils.lua")

vis.events = {}
vis.events.win_open = function(win)
	-- test.in file passed to vis
	local in_file = win.file.name
	if in_file then
		-- use the corresponding test.lua file
		lua_file = string.gsub(in_file, '%.in$', '.lua')
		dofile(lua_file)
	end
	vis:command('q!')
end