Fix reload module problem on windows

This commit is contained in:
Francesco Abbate
2021-02-17 19:20:00 +01:00
parent 6369a7f760
commit 1ce1c114ba
3 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -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