From 1a05e00fddcc5105e8728009a1782228b25a33e7 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Sat, 1 May 2021 19:24:06 +0200 Subject: [PATCH] Fix detection of user file module Close #54 --- data/core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/init.lua b/data/core/init.lua index 88ea605c..1a1b2b4a 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -1013,7 +1013,7 @@ end core.add_save_hook(function(filename) local doc = core.active_view.doc - if doc and doc:is(Doc) and doc.filename == USERDIR .. PATHSEP .. "init.lua" then + if doc and doc:is(Doc) and doc.abs_filename == USERDIR .. PATHSEP .. "init.lua" then core.reload_module("core.style") core.load_user_directory() end