parent
13d19d84f9
commit
2aa50aecaf
7
ui.go
7
ui.go
@ -1051,11 +1051,12 @@ func (ui *ui) readNormalEvent(ev tcell.Event) expr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
expr, ok := gOpts.keys[button]
|
expr, ok := gOpts.keys[button]
|
||||||
if ok {
|
if !ok {
|
||||||
return expr
|
ui.echoerrf("unknown mapping: %s", button)
|
||||||
|
return draw
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return expr
|
||||||
case *tcell.EventResize:
|
case *tcell.EventResize:
|
||||||
return &callExpr{"redraw", nil, 1}
|
return &callExpr{"redraw", nil, 1}
|
||||||
case *tcell.EventError:
|
case *tcell.EventError:
|
||||||
|
Loading…
Reference in New Issue
Block a user