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:
parent
48ac5215cf
commit
b9ab8d1a6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user