This commit is contained in:
Gokcehan 2018-06-06 20:55:13 +03:00
parent 448f2a3cb2
commit 20720c832d

3
ui.go
View File

@ -796,7 +796,6 @@ func (ui *ui) readEvent(ch chan<- expr, ev termbox.Event) {
} }
default: default:
if ok { if ok {
// TODO: use a delay
if len(ui.keyCount) > 0 { if len(ui.keyCount) > 0 {
c, err := strconv.Atoi(string(ui.keyCount)) c, err := strconv.Atoi(string(ui.keyCount))
if err != nil { if err != nil {
@ -821,8 +820,6 @@ func (ui *ui) readEvent(ch chan<- expr, ev termbox.Event) {
} }
case termbox.EventResize: case termbox.EventResize:
ch <- &callExpr{"redraw", nil, 1} ch <- &callExpr{"redraw", nil, 1}
default:
// TODO: handle other events
} }
} }