From 4c26e7d2edd9000bc8d0ff9cf86cf1dee25f37f1 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Mon, 10 Mar 2025 17:01:49 +0100 Subject: [PATCH] console.lua: fix crash when pressing Ctrl+c with select Pressing ctrl+c in select mode crashes if console wasn't opened in free-form text mode before. This also makes the type of the history variable clear. Fixes a6024b562a. --- player/lua/console.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/console.lua b/player/lua/console.lua index 07dd63a9b6..9df5adccb1 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -76,7 +76,7 @@ local prompt local id local histories = {} -local history +local history = {} local history_pos = 1 local searching_history = false local history_paths = {}