Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console.lua: don't crash when scrolling without matches
selected_match can become 0 when pressing certain scrolling keybindings without any match, and for i = first_match_to_print, last_match_to_print do in populate_log_with_matches() runs from 0 to 0 and accessing matches[0].text crashes console.lua. Return early when it is 0.
- Loading branch information