1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-03 12:47:49 +00:00

console.lua: fix mp.input.get clients that don't specify completions

Actually update the rendered text when typing with an input.get client
that didn't specify a complete callback.

Fixes #15430, fixes 57b73f1af6.
This commit is contained in:
Guido Cella 2024-12-03 07:11:53 +01:00 committed by Kacper Michajłow
parent f7e6e30a49
commit 78ee714fff

View File

@ -1444,6 +1444,7 @@ complete = function ()
completion_old_cursor = cursor
mp.commandv('script-message-to', input_caller, 'input-event',
'complete', utils.format_json({line:sub(1, cursor - 1)}))
update()
return
end