From 59d1e307a65cf8dce3401aa2c8bab67c29630ff7 Mon Sep 17 00:00:00 2001 From: Erlend Lind Madsen Date: Sun, 20 Dec 2020 20:22:29 +0100 Subject: Revert "read cursor paths on require and not on INIT" This reverts commit f3df323d541f8ad2f99478643092030d25c5323f. --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.lua b/init.lua index f0f54df..816bf6a 100644 --- a/init.lua +++ b/init.lua @@ -71,10 +71,9 @@ local set_cursor_pos = function(win) cursors[win.file.path] = win.selection.pos end +vis.events.subscribe(vis.events.INIT, read_cursors) vis.events.subscribe(vis.events.WIN_OPEN, apply_cursor_pos) vis.events.subscribe(vis.events.WIN_CLOSE, set_cursor_pos) vis.events.subscribe(vis.events.QUIT, write_cursors) -read_cursors() - return M -- cgit