dircycle: fix error on insert-cycledleft if dirstack is empty

master
Marc Cornellà 9 years ago
parent 0b340bc3a5
commit 6685aac42c
  1. 2
      plugins/dircycle/dircycle.plugin.zsh

@ -9,6 +9,8 @@
# pushd -N: start counting from right of `dirs' output
switch-to-dir () {
[[ ${#dirstack} -eq 0 ]] && return
while ! builtin pushd -q $1 &>/dev/null; do
# We found a missing directory: pop it out of the dir stack
builtin popd -q $1

Loading…
Cancel
Save