History

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.

Guido Cella committed 1 year ago

Commit 4c26e7d1 parent edf4fdf1 file · +1 −1Browse files

Unified · Split

player/lua/console.lua+1−1
@@ -76,7 +76,7 @@ local prompt · 75 unmodified lines
76local id76local id
77 77
78local histories = {}78local histories = {}
79local history79local history = {}
80local history_pos = 180local history_pos = 1
81local searching_history = false81local searching_history = false
82local history_paths = {}82local history_paths = {}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t