aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2022-01-24 09:31:40 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2022-01-24 09:31:40 +0100
commitc9d4f6fab34404f94b47ccf1812d00ba15170703 (patch)
tree10b0ebef0e05cb2b7f29bf2fc94d2263d1ef8b7d
parentd1017895ebf24cdfcdf0252822bd20184b411785 (diff)
downloadlite-xl-c9d4f6fab34404f94b47ccf1812d00ba15170703.tar.gz
lite-xl-c9d4f6fab34404f94b47ccf1812d00ba15170703.zip
Fix problem with project module save hook
-rw-r--r--data/core/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/core/init.lua b/data/core/init.lua
index 6ac6af9c..efd604ec 100644
--- a/data/core/init.lua
+++ b/data/core/init.lua
@@ -847,8 +847,9 @@ local function add_config_files_hooks()
local doc_save = Doc.save
local user_filename = system.absolute_path(USERDIR .. PATHSEP .. "init.lua")
function Doc:save(filename, abs_filename)
+ local module_filename = system.absolute_path(".lite_project.lua")
doc_save(self, filename, abs_filename)
- if self.abs_filename == user_filename or self.abs_filename == core.project_module_filename then
+ if self.abs_filename == user_filename or self.abs_filename == module_filename then
reload_customizations()
rescan_project_directories()
configure_borderless_window()
@@ -1163,7 +1164,6 @@ end
function core.load_project_module()
local filename = ".lite_project.lua"
- core.project_module_filename = system.absolute_path(filename)
if system.get_file_info(filename) then
return core.try(function()
local fn, err = loadfile(filename)