From 78ee714fff5f21d91d996eab0a1a06f622d6cb0b Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Tue, 3 Dec 2024 07:11:53 +0100 Subject: [PATCH] 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. --- player/lua/console.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/player/lua/console.lua b/player/lua/console.lua index c4c3dcc30c..adfc085239 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -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