Add ignore action for --bind

This commit is contained in:
Junegunn Choi 2015-06-14 01:54:56 +09:00
parent 8e7164553f
commit 9fca611c4a
2 changed files with 5 additions and 0 deletions

View File

@ -391,6 +391,8 @@ func parseKeymap(keymap map[int]actionType, toggleSort bool, str string) (map[in
key := keys[0]
act := strings.ToLower(pair[1])
switch act {
case "ignore":
keymap[key] = actIgnore
case "beginning-of-line":
keymap[key] = actBeginningOfLine
case "abort":

View File

@ -716,6 +716,9 @@ func (t *Terminal) Loop() {
}
}
switch action {
case actIgnore:
t.mutex.Unlock()
continue
case actInvalid:
t.mutex.Unlock()
continue