aboutsummaryrefslogtreecommitdiff
path: root/plugins/plugin_manager/init.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-02-04 14:40:35 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-02-04 14:40:35 -0500
commitbc528010382dfc443860e1b175e9a10088db7619 (patch)
tree530cedcea8b4d6146bbb9b8ce76ca97d96df2c7a /plugins/plugin_manager/init.lua
parente0d5991adbff82591d8699bfebb3161aa21387fd (diff)
downloadlite-xl-plugin-manager-bc528010382dfc443860e1b175e9a10088db7619.tar.gz
lite-xl-plugin-manager-bc528010382dfc443860e1b175e9a10088db7619.zip
Made things more backwards compatible, and added some additional fixes to view.
Diffstat (limited to 'plugins/plugin_manager/init.lua')
-rw-r--r--plugins/plugin_manager/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua
index 82e5442..eea9efb 100644
--- a/plugins/plugin_manager/init.lua
+++ b/plugins/plugin_manager/init.lua
@@ -80,7 +80,7 @@ end
local function run(cmd, progress)
table.insert(cmd, 1, config.plugins.plugin_manager.lpm_binary_path)
table.insert(cmd, "--json")
- table.insert(cmd, "--mod-version=" .. MOD_VERSION_MAJOR)
+ table.insert(cmd, "--mod-version=" .. (rawget(_G, "MOD_VERSION") or MOD_VERSION_STRING)) -- #workaround hack for new system.
table.insert(cmd, "--quiet")
table.insert(cmd, "--progress")
table.insert(cmd, "--userdir=" .. USERDIR)