Make golint happy. Fix typo.

This commit is contained in:
Roi Martin 2016-10-11 08:52:03 +02:00
parent cea263b118
commit d822523f8c
2 changed files with 7 additions and 8 deletions

View File

@ -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

13
view.go
View File

@ -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