1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-24 12:22:25 +00:00

console.lua: remove unnecessary copy

This commit is contained in:
Guido Cella 2023-10-11 16:45:15 +02:00 committed by Dudemanguy
parent 48ac5215cf
commit b9ab8d1a6c

View File

@ -721,10 +721,7 @@ function complete()
prefix = prefix .. (completer.append or '')
else
table.sort(completions)
suggestion_buffer = {}
for i, completion in ipairs(completions) do
suggestion_buffer[i] = completion
end
suggestion_buffer = completions
end
-- Insert the completion and update