From 8865d9b47345b52b7c1bb2c96c8ce24d3cadaab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 15 Feb 2017 21:43:04 +0100 Subject: test/vis: source the default visrc.lua file This loads the default plugins whose functionality can now also be tested. --- vis/visrc.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vis/visrc.lua b/vis/visrc.lua index 642af45..272815a 100644 --- a/vis/visrc.lua +++ b/vis/visrc.lua @@ -1,5 +1,6 @@ -vis.events = {} -vis.events.win_open = function(win) +dofile("../../lua/visrc.lua") + +vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- test.in file passed to vis local name = win.file.name if name then @@ -14,4 +15,4 @@ vis.events.win_open = function(win) vis:command(string.format("w! '%s.out'", name)) vis:command('qall!') end -end +end) -- cgit v1.2.3