Yet another dircycle fix (hopefully the last one)

The right directions are `-1` for left, `+0` for right cycling
This commit is contained in:
Rotem Yaari 2014-12-29 16:50:59 +02:00
commit 7d30246d31

View file

@ -2,7 +2,7 @@
# dircycle plugin: enables cycling through the directory # dircycle plugin: enables cycling through the directory
# stack using Ctrl+Shift+Left/Right # stack using Ctrl+Shift+Left/Right
eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q +1'; zle accept-line }" eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q -1'; zle accept-line }"
zle -N insert-cycledleft zle -N insert-cycledleft
bindkey "\e[1;6D" insert-cycledleft bindkey "\e[1;6D" insert-cycledleft
eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q +0'; zle accept-line }" eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q +0'; zle accept-line }"