From 230b3c1485318e3a028a53082627a128ddaa2754 Mon Sep 17 00:00:00 2001 From: Josh Wainwright Date: Thu, 21 Apr 2016 09:05:38 +0100 Subject: Quit vis from within test visrc.lua --- lua/visrc.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lua/visrc.lua') diff --git a/lua/visrc.lua b/lua/visrc.lua index dcd4d8e..2c8ff78 100644 --- a/lua/visrc.lua +++ b/lua/visrc.lua @@ -2,13 +2,10 @@ require("utils") 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) --- These both seem to cause crashes at the moment. --- vis:command('q!') --- --- vis:map(vis.MODE_NORMAL, "Q", function() --- vis:command('q!') --- end) + vis:command('q!') end -- cgit v1.2.3