aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua13
1 files changed, 2 insertions, 11 deletions
diff --git a/init.lua b/init.lua
index 03da38e..674effd 100644
--- a/init.lua
+++ b/init.lua
@@ -69,17 +69,8 @@ local function prompt(path, lfile_path, pid)
end
-- else 'abort' or dialog canceled
-
- local hnd1
- hnd1 = function()
- if vis.win.file and vis.win.file.path == path then
- vis.events.unsubscribe(vis.events.UI_DRAW, hnd1)
- vis:command('q')
- vis:command('new')
- end
- end
- vis.events.subscribe(vis.events.UI_DRAW, hnd1)
- vis:redraw()
+ vis:command('q')
+ vis:command('new')
end
local created_locks = {}