9650861e56a3404313adc35cbcb1f32a7015b99d

Author
Andre Eriksson <andre.eriksson@trioptima.com>
Committer
Andre Eriksson <andre.eriksson@trioptima.com>
Date

Message

Fix broken reverse-menu-complete keybinding.

Since e537ee9, the reverse-menu-complete keybinding has no longer been
properly bound (it was accidentally bound to the delete key).

This commit again binds it to shift-tab.

Diff

 1diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
 2index 5f3f237c72b6408fe4233ab7b7eab6f3365c326b..9063c6a18c2778056832654e5a300b25ec32a084 100644
 3--- a/lib/key-bindings.zsh
 4+++ b/lib/key-bindings.zsh
 5@@ -46,8 +46,8 @@ bindkey ' ' magic-space                               # [Space] - do history exp
 6 bindkey '^[[1;5C' forward-word                        # [Ctrl-RightArrow] - move forward one word
 7 bindkey '^[[1;5D' backward-word                       # [Ctrl-LeftArrow] - move backward one word
 8 
 9-if [[ "${terminfo[kdch1]}" != "" ]]; then
10-  bindkey "${terminfo[kdch1]}" reverse-menu-complete  # [Shift-Tab] - move through the completion menu backwards
11+if [[ "${terminfo[kcbt]}" != "" ]]; then
12+  bindkey "${terminfo[kcbt]}" reverse-menu-complete   # [Shift-Tab] - move through the completion menu backwards
13 fi
14 
15 bindkey '^?' backward-delete-char                     # [Backspace] - delete backward