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:
1 parent
edf4fdfb1f
commit
4c26e7d2ed
1 file changed
+1
-1
@@ -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 = {}
|
||||
|
||||
Reference in new issue
Block a user