Fix detection of user file module

Close #54
This commit is contained in:
Francesco Abbate 2021-05-01 19:24:06 +02:00
parent e6d88909a8
commit 1a05e00fdd
1 changed files with 1 additions and 1 deletions

View File

@ -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