mirror of https://github.com/jroimartin/gocui.git
Make golint happy. Fix typo.
This commit is contained in:
parent
cea263b118
commit
d822523f8c
|
@ -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
13
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
|
||||
|
|
Loading…
Reference in New Issue