Fix reload module problem on windows
This commit is contained in:
1 parent
6369a7f760
commit
1ce1c114ba
3 files changed
+13
-2
No files matched your search
@@ -67,7 +67,7 @@ end
|
||||
|
||||
local function save(filename)
|
||||
doc():save(filename)
|
||||
if doc().filename == (USERDIR .. PATHSEP .. "init.lua") then
|
||||
if doc().filename == common.normalize_path(USERDIR .. PATHSEP .. "init.lua") then
|
||||
core.reload_module("core.style")
|
||||
core.load_user_directory()
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user