Browse Source

Check the real absolute path of user module

Close issue #212
pull/223/head
Francesco Abbate 1 year ago
parent
commit
739763675e
  1. 3
      data/core/init.lua

3
data/core/init.lua

@ -1011,7 +1011,8 @@ end
core.add_save_hook(function(filename)
local doc = core.active_view.doc
if doc and doc:is(Doc) and doc.abs_filename == USERDIR .. PATHSEP .. "init.lua" then
local user_filename = system.absolute_path(USERDIR .. PATHSEP .. "init.lua")
if doc and doc:is(Doc) and doc.abs_filename == user_filename then
core.reload_module("core.style")
core.load_user_directory()
end

Loading…
Cancel
Save