aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-15 21:43:04 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-15 21:43:04 +0100
commit8865d9b47345b52b7c1bb2c96c8ce24d3cadaab1 (patch)
tree994721fd5391ac5c57063ae16f8989509e8547ab
parent5b2ee803aa830d8a2520c40404a0641d259c8033 (diff)
downloadvis-8865d9b47345b52b7c1bb2c96c8ce24d3cadaab1.tar.gz
vis-8865d9b47345b52b7c1bb2c96c8ce24d3cadaab1.tar.xz
test/vis: source the default visrc.lua file
This loads the default plugins whose functionality can now also be tested.
-rw-r--r--vis/visrc.lua7
1 files 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)