From d822523f8c7a2e3ca2578342c1eaf1225d0a5aa0 Mon Sep 17 00:00:00 2001 From: Roi Martin Date: Tue, 11 Oct 2016 08:52:03 +0200 Subject: [PATCH] Make golint happy. Fix typo. --- escape.go | 2 +- view.go | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) 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