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.
This commit is contained in:
1 parent
448abf1e3b
commit
b848ffad12
1 file changed
+1
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user