aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-10-19 16:01:37 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-10-19 16:01:37 -0400
commitd050e5c322866e407397955e48824362087b0bb8 (patch)
tree877cff4821be64130bc0467081a56c5def3c1c32
parent47a8f23f374f34a77c678aab0458f409da1e3341 (diff)
downloadlite-xl-plugin-manager-d050e5c322866e407397955e48824362087b0bb8.tar.gz
lite-xl-plugin-manager-d050e5c322866e407397955e48824362087b0bb8.zip
Fixed small issue.
-rw-r--r--src/lpm.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 9ffc720..9241a23 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1466,9 +1466,7 @@ function Bottle:construct()
if not self.lite_xl:is_installed() then self.lite_xl:install() end
common.mkdirp(self.local_path .. PATHSEP .. "user")
- if self.config then
- common.write(self.local_path .. PATHSEP .. "user" .. PATHSEP .. "init.lua", DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true\n" or "") .. self.config)
- end
+ common.write(self.local_path .. PATHSEP .. "user" .. PATHSEP .. "init.lua", DEFAULT_CONFIG_HEADER .. (MOD_VERSION == "any" and "config.skip_plugins_version = true\n" or "") .. (self.config or ""))
-- Always copy the executbale, because of the way that lite determines the user folder (for now).
common.copy(self.lite_xl:get_binary_path(), self.local_path .. PATHSEP .. "lite-xl" .. EXECUTABLE_EXTENSION)