diff options
| author | Mr Alin <almr@kdl> | 2024-05-04 02:28:17 +0000 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-05-04 11:31:16 +0200 |
| commit | 92d9548e6ffb5ed2d263aacadf3bd899ce289655 (patch) | |
| tree | 9a02171408d8bfcfacd2ba9cd724733577e4fade | |
| parent | 25c3f58bd9550b18c3f289c9bee93a726359f810 (diff) | |
| download | vis-lockfiles-92d9548e6ffb5ed2d263aacadf3bd899ce289655.tar.gz vis-lockfiles-92d9548e6ffb5ed2d263aacadf3bd899ce289655.zip | |
init.lua: no need to defer to handler apparently
| -rw-r--r-- | init.lua | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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 = {} |
