FIX: Use PATHSEP instead of hardcoded "/" path separator

This commit is contained in:
bud 2021-02-16 19:25:40 +01:00
parent b9fcb6e5ae
commit 63b024cb81
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ end
local function save(filename)
doc():save(filename)
if doc().filename == (USERDIR .. "/init.lua") then
if doc().filename == (USERDIR .. PATHSEP .. "init.lua") then
core.reload_module("core.style")
core.load_user_directory()
end