From 92d9548e6ffb5ed2d263aacadf3bd899ce289655 Mon Sep 17 00:00:00 2001 From: Mr Alin Date: Sat, 4 May 2024 02:28:17 +0000 Subject: init.lua: no need to defer to handler apparently --- init.lua | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'init.lua') 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 = {} -- cgit v1.2.3