diff options
| author | Josh Wainwright <josh.wainwright@ldra.com> | 2016-04-21 09:05:38 +0100 |
|---|---|---|
| committer | Josh Wainwright <josh.wainwright@ldra.com> | 2016-04-21 09:05:38 +0100 |
| commit | 230b3c1485318e3a028a53082627a128ddaa2754 (patch) | |
| tree | b0d36636c1bcb635ae9cf571542f2c77afa45f18 /lua/visrc.lua | |
| parent | 2b18735726cd92be87e20f30680d85e7f0f1a3b2 (diff) | |
| download | vis-230b3c1485318e3a028a53082627a128ddaa2754.tar.gz vis-230b3c1485318e3a028a53082627a128ddaa2754.tar.xz | |
Quit vis from within test visrc.lua
Diffstat (limited to 'lua/visrc.lua')
| -rw-r--r-- | lua/visrc.lua | 9 |
1 files changed, 3 insertions, 6 deletions
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 |
