Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Slash after directory number in cd completion?



[ Hello, everyone.  I'm back. ]

Oliver Kiddle wrote:

> ...
> 
> I actually think the correct patch would be to remove the whole if,
> then else because it is done in _tilde and isn't otherwise needed. I've
> left it for the time being though.

I agree.

Bye
  Sven

Index: Completion/Zsh/Type/_directory_stack
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Type/_directory_stack,v
retrieving revision 1.3
diff -u -r1.3 _directory_stack
--- Completion/Zsh/Type/_directory_stack	2001/04/12 11:42:02	1.3
+++ Completion/Zsh/Type/_directory_stack	2001/04/17 08:51:53
@@ -7,16 +7,8 @@
 
 setopt localoptions nonomatch
 
-local expl list lines revlines disp suf
+local expl list lines revlines disp
 
-if [[ "$SUFFIX" = */* ]]; then
-  ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
-  SUFFIX="${SUFFIX%%/*}"
-  suf=(-S '')
-else
-  suf=()
-fi
-
 ### we decided against this, for now...
 #! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
 
@@ -48,4 +40,4 @@
 fi
 
 _wanted -V directory-stack expl 'directory stack' \
-    compadd "$@" "$suf[@]" "$disp[@]" -Q -a list
+    compadd "$@" "$disp[@]" -Q -a list

-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author