Fix #1233: check modeState exists

This commit is contained in:
Oliver Blanthorn 2018-12-13 14:19:36 +00:00
parent be2618c352
commit 393a4b033e
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -507,7 +507,7 @@ function pushKey(ke) {
modeState.filter += ke.key
modeState.filterFunc(modeState.filter)
if (!modeState.activeHints.length) {
if (modeState && !modeState.activeHints.length) {
// There are no more active hints, undo the change to the filter
modeState.filter = originalFilter
modeState.filterFunc(modeState.filter)