diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-04-11 22:26:11 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-04-11 22:26:11 +0000 |
| commit | d4f7d8d32c5b8cdbe98a3ed83f38b62399972390 (patch) | |
| tree | 320d550085c483a40b39dacafe09bf32dd064a02 | |
| parent | Strip %[BSubsu] as well as %{*%} before computing width of prompt. (diff) | |
| download | zsh-d4f7d8d32c5b8cdbe98a3ed83f38b62399972390.tar zsh-d4f7d8d32c5b8cdbe98a3ed83f38b62399972390.tar.gz zsh-d4f7d8d32c5b8cdbe98a3ed83f38b62399972390.tar.bz2 zsh-d4f7d8d32c5b8cdbe98a3ed83f38b62399972390.tar.lz zsh-d4f7d8d32c5b8cdbe98a3ed83f38b62399972390.tar.xz zsh-d4f7d8d32c5b8cdbe98a3ed83f38b62399972390.tar.zst zsh-d4f7d8d32c5b8cdbe98a3ed83f38b62399972390.zip | |
Don't append a / when completing after [-+]*.
| -rw-r--r-- | Completion/Zsh/Type/_directory_stack | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Zsh/Type/_directory_stack b/Completion/Zsh/Type/_directory_stack index f79aa947f..3e615dee4 100644 --- a/Completion/Zsh/Type/_directory_stack +++ b/Completion/Zsh/Type/_directory_stack @@ -13,14 +13,15 @@ if [[ "$SUFFIX" = */* ]]; then ISUFFIX="/${SUFFIX#*/}$ISUFFIX" SUFFIX="${SUFFIX%%/*}" suf=(-S '') -else +elif [[ $PREFIX != [-+]* ]]; then suf=(-qS/) +else + suf=() fi ### we decided against this, for now... #! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed || - -[[ $PREFIX = [-+]* ]] || return 1 +# [[ $PREFIX = [-+]* ]] || return 1 if zstyle -T ":completion:${curcontext}:directory-stack" verbose; then # get the list of directories with their canonical number |
