From 88b881d74c64700f7bf596c7f2025bc3f7f90cfa Mon Sep 17 00:00:00 2001 From: Andrei Gorgan Date: Wed, 26 Mar 2014 22:06:30 +0200 Subject: [PATCH] Fix Shift+Tab for cycling completion menu backward A previous commit accidentally broke this key binding. Oh well, it happens :). --- lib/key-bindings.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh index 5f3f237c7..f0c9c30d4 100644 --- a/lib/key-bindings.zsh +++ b/lib/key-bindings.zsh @@ -46,8 +46,8 @@ bindkey ' ' magic-space # [Space] - do history exp bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word -if [[ "${terminfo[kdch1]}" != "" ]]; then - bindkey "${terminfo[kdch1]}" reverse-menu-complete # [Shift-Tab] - move through the completion menu backwards +if [[ "${terminfo[kcbt]}" != "" ]]; then + bindkey "${terminfo[kcbt]}" reverse-menu-complete # [Shift-Tab] - move through the completion menu backwards fi bindkey '^?' backward-delete-char # [Backspace] - delete backward