aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMr Alin <almr@kdl>2024-05-04 02:28:17 +0000
committerFlorian Fischer <florian.fischer@muhq.space>2024-05-04 11:31:16 +0200
commit92d9548e6ffb5ed2d263aacadf3bd899ce289655 (patch)
tree9a02171408d8bfcfacd2ba9cd724733577e4fade
parent25c3f58bd9550b18c3f289c9bee93a726359f810 (diff)
downloadvis-lockfiles-92d9548e6ffb5ed2d263aacadf3bd899ce289655.tar.gz
vis-lockfiles-92d9548e6ffb5ed2d263aacadf3bd899ce289655.zip
init.lua: no need to defer to handler apparently
-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 = {}