diff --git a/escape.go b/escape.go index 54b99ed..ec31bbe 100644 --- a/escape.go +++ b/escape.go @@ -133,6 +133,8 @@ func (ei *escapeInterpreter) parseOne(ch rune) (isEscape bool, err error) { ei.state = stateNone ei.csiParam = nil return true, nil + default: + return false, errCSIParseError } } return false, nil