Allow action composition over multiple --bind

# Note + prefix in the second bind expression
  fzf --bind u:up --bind u:+up
  fzf --bind u:up+up
This commit is contained in:
Junegunn Choi
2019-11-21 23:06:14 +09:00
parent 60465c4664
commit e615600ff1
2 changed files with 7 additions and 2 deletions

View File

@@ -809,7 +809,11 @@ func parseKeymap(keymap map[int][]action, str string) {
default:
t := isExecuteAction(specLower)
if t == actIgnore {
errorExit("unknown action: " + spec)
if specIndex == 0 && specLower == "" {
actions = append(keymap[key], actions...)
} else {
errorExit("unknown action: " + spec)
}
} else {
var offset int
switch t {