mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-23 01:10:23 +00:00
Improve showkey command
This commit is contained in:
parent
a87370b111
commit
5cb618c466
1 changed files with 6 additions and 1 deletions
|
|
@ -641,7 +641,12 @@ func (h *BufPane) ShowKeyCmd(args []string) {
|
|||
return
|
||||
}
|
||||
|
||||
if action, ok := config.Bindings[args[0]]; ok {
|
||||
event, err := findEvent(args[0])
|
||||
if err != nil {
|
||||
InfoBar.Error(err)
|
||||
return
|
||||
}
|
||||
if action, ok := config.Bindings[event.Name()]; ok {
|
||||
InfoBar.Message(action)
|
||||
} else {
|
||||
InfoBar.Message(args[0], " has no binding")
|
||||
|
|
|
|||
Loading…
Reference in a new issue