aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index f73e13a..723e046 100644
--- a/init.lua
+++ b/init.lua
@@ -72,7 +72,10 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win)
if lockfiles.vis_pid == lock_pid then
created_locks[file.path] = lfile_path
else
- prompt(file.path, lfile_path, lock_pid)
+ if not prompt(file.path, lfile_path, lock_pid) then
+ -- return ~= nil to stop further event handling since we closed the window
+ return true
+ end
end
end)