diff options
| -rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -109,6 +109,7 @@ local function delete_lock_file(lfile_path) end vis.events.subscribe(vis.events.FILE_OPEN, function(file) + if not file.path then return end local lfile_path = lock_file_path(file.path) if not create_lock_file(lfile_path) and not confirm(lfile_path) then os.exit(1) @@ -116,6 +117,7 @@ vis.events.subscribe(vis.events.FILE_OPEN, function(file) end) vis.events.subscribe(vis.events.FILE_CLOSE, function(file) + if not file.path then return end local lfile_path = lock_file_path(file.path) if created_locks[lfile_path] then delete_lock_file(lfile_path) |
