about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-07-22 13:03:02 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-07-22 13:03:02 -0700
commit30dd372bcb854dd4d1374d5fd3f7c4604ade0861 (patch)
tree8a93b53b9c65ea96ca67bc4672c613cc43e06c96 /Completion/Zsh
parentcd690f45316aede3c617e70ad0abae8b7dcd2f80 (diff)
downloadzsh-30dd372bcb854dd4d1374d5fd3f7c4604ade0861.tar.gz
zsh-30dd372bcb854dd4d1374d5fd3f7c4604ade0861.tar.xz
zsh-30dd372bcb854dd4d1374d5fd3f7c4604ade0861.zip
users/20324: add (D) flag for tilde-fied completion listing
Also move some more recent code so an old comment is connected to the
correct bit of older code
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Type/_directory_stack6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Zsh/Type/_directory_stack b/Completion/Zsh/Type/_directory_stack
index 8a4cf675a..e84115a64 100644
--- a/Completion/Zsh/Type/_directory_stack
+++ b/Completion/Zsh/Type/_directory_stack
@@ -12,14 +12,14 @@ local expl list lines revlines disp sep
 ### we decided against this, for now...
 #! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
 
-zstyle -s ":completion:${curcontext}:directory-stack" list-separator sep || sep=--
-
 [[ $PREFIX = [-+]* ]] || return 1
 
+zstyle -s ":completion:${curcontext}:directory-stack" list-separator sep || sep=--
+
 if zstyle -T ":completion:${curcontext}:directory-stack" verbose; then
   # get the list of directories with their canonical number
   # and turn the lines into an array, removing the current directory
-  lines=("${dirstack[@]}")
+  lines=("${(D)dirstack[@]}")
 
   if [[ ( $PREFIX[1] = - && ! -o pushdminus ) ||
         ( $PREFIX[1] = + && -o pushdminus ) ]]; then