Skip to content

Commit 4c26e7d

Browse files
guidocellakasper93
authored andcommitted
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 a6024b5.
1 parent edf4fdf commit 4c26e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

player/lua/console.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ local prompt
7676
local id
7777

7878
local histories = {}
79-
local history
79+
local history = {}
8080
local history_pos = 1
8181
local searching_history = false
8282
local history_paths = {}

0 commit comments

Comments
 (0)