From 820d520fc3ab274c5ec084db9a5dd4734787ce8b Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Wed, 5 May 2021 08:47:45 +0200 Subject: [PATCH] Store doc's babs_filename without home encoding This is the way was supposed to be. All the filenames are supposed to be stored without home encoding, i.e. with explicit paths. Should fix issue #177 and make PR https://github.com/franko/lite-xl/pull/174 unneeded. It may also address issue #174 but would need further verifications. --- data/core/doc/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/doc/init.lua b/data/core/doc/init.lua index b2416d3a..39fae9ca 100644 --- a/data/core/doc/init.lua +++ b/data/core/doc/init.lua @@ -67,7 +67,7 @@ end function Doc:set_filename(filename) self.filename = filename - self.abs_filename = common.home_encode(system.absolute_path(filename)) + self.abs_filename = system.absolute_path(filename) end