aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 398e54e..37504ce 100644
--- a/init.lua
+++ b/init.lua
@@ -59,7 +59,7 @@ vis.events.subscribe(vis.events.FILE_OPEN, function(file)
if lockfiles.create_lock_file(get_lock_dir(), lfile_path) then
created_locks[file.path] = lfile_path
elseif not confirm(lfile_path) then
- os.exit(1)
+ vis:exit(1)
end
end)