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]
|
||||
if ok {
|
||||
return expr
|
||||
if !ok {
|
||||
ui.echoerrf("unknown mapping: %s", button)
|
||||
return draw
|
||||
}
|
||||
|
||||
return nil
|
||||
return expr
|
||||
case *tcell.EventResize:
|
||||
return &callExpr{"redraw", nil, 1}
|
||||
case *tcell.EventError:
|
||||
|
Loading…
Reference in New Issue
Block a user