aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-10-20 14:22:08 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-10-20 14:22:08 -0400
commite37fdc9713cacc6182299ab6f6c632f6bcb75926 (patch)
tree52713f4ee904c840e653b7a8386e5900769b220a
parent3de92ec86133fc06d41c542550039a464f6fd9e9 (diff)
downloadlite-xl-plugin-manager-e37fdc9713cacc6182299ab6f6c632f6bcb75926.tar.gz
lite-xl-plugin-manager-e37fdc9713cacc6182299ab6f6c632f6bcb75926.zip
Ensured that "any" was being respected.
-rw-r--r--src/lpm.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 9c94bc9..c77e511 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1922,8 +1922,7 @@ function lpm.retrieve_addons(lite_xl, arguments, filters)
local repo, remainder = common.split("@", str)
if not remainder then repo = nil end
local id, version = common.split(":", remainder or str)
-
- local potentials = { system_bottle:get_addon(id, version, common.merge({ mod_version = lite_xl.mod_version, repository = repo }, filters or {})) }
+ local potentials = { system_bottle:get_addon(id, version, common.merge({ mod_version = (MOD_VERSION ~= "any" and (MOD_VERSION or lite_xl.mod_version)), repository = repo }, filters or {})) }
local uniq = {}
local found_one = false
for i, addon in ipairs(potentials) do