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.
This commit is contained in:
Guido Cella authored and Kacper Michajłow committed 2025-03-10 17:06:02 +01:00
1 parent edf4fdfb1f
commit 4c26e7d2ed
1 file changed
+1 -1
+1 -1
View File
@@ -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 = {}