From b848ffad12f4b70a7b121a3dfd4120ee9d4c4488 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 22 Feb 2025 14:47:34 +0100 Subject: [PATCH] select.lua: fix LSP warning I don't know why I didn't get it before but Lua's LSP now complains with Compute `"Edition " .. (edition.id + 1)` first. You may need to add brackets. [ambiguity-1]. Just move the parenthesis to make it happy. --- player/lua/select.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/select.lua b/player/lua/select.lua index ac90959e52..13b65eb1b6 100644 --- a/player/lua/select.lua +++ b/player/lua/select.lua @@ -248,7 +248,7 @@ mp.add_key_binding(nil, "select-edition", function () local editions = {} for i, edition in ipairs(edition_list) do - editions[i] = edition.title or "Edition " .. (edition.id + 1) + editions[i] = edition.title or ("Edition " .. edition.id + 1) end input.select({