From ee9a2196006d3c69551bf535c6d2868d6dff4aab Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 22 Feb 2026 09:52:17 +0100 Subject: [PATCH] console.lua: deduplicate code between get-input and handle_cursor_move --- player/lua/console.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/player/lua/console.lua b/player/lua/console.lua index d2bf222acb..5024c86479 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -1726,13 +1726,7 @@ mp.register_script_message("get-input", function (args) read_history() history_pos = #history + 1 - if line ~= "" then - complete() - elseif open then - -- This is needed to update the prompt if a new request is - -- received while another is still active. - render() - end + handle_cursor_move() end set_active(true)