mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +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:
committed by
Kacper Michajłow
parent
f7e6e30a49
commit
78ee714fff
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user