diff --git a/escape.go b/escape.go index 0bfbedb..07871d5 100644 --- a/escape.go +++ b/escape.go @@ -63,7 +63,7 @@ func newEscapeInterpreter() *escapeInterpreter { return ei } -// reset sets the escapeInterpreter in inital state. +// reset sets the escapeInterpreter in initial state. func (ei *escapeInterpreter) reset() { ei.state = stateNone ei.curFgColor = ColorDefault diff --git a/view.go b/view.go index 8e16453..f8d8694 100644 --- a/view.go +++ b/view.go @@ -244,14 +244,13 @@ func (v *View) parseInput(ch rune) []cell { } else { if isEscape { return nil - } else { - c := cell{ - fgColor: v.ei.curFgColor, - bgColor: v.ei.curBgColor, - chr: ch, - } - cells = append(cells, c) } + c := cell{ + fgColor: v.ei.curFgColor, + bgColor: v.ei.curBgColor, + chr: ch, + } + cells = append(cells, c) } return cells