diff options
| -rw-r--r-- | init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |
