summaryrefslogtreecommitdiffstats
path: root/Completion/Builtins/_cd
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-06 13:01:51 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-06 13:01:51 +0000
commitcb4bb129dd143255a582ddd203baa73d3dcc1db7 (patch)
tree9edc79a76c65821dfabccdb6a13f7c6e6adbc7e9 /Completion/Builtins/_cd
parentOther places where `unsetopt cshnullglob' is needed. (diff)
downloadzsh-cb4bb129dd143255a582ddd203baa73d3dcc1db7.tar
zsh-cb4bb129dd143255a582ddd203baa73d3dcc1db7.tar.gz
zsh-cb4bb129dd143255a582ddd203baa73d3dcc1db7.tar.bz2
zsh-cb4bb129dd143255a582ddd203baa73d3dcc1db7.tar.lz
zsh-cb4bb129dd143255a582ddd203baa73d3dcc1db7.tar.xz
zsh-cb4bb129dd143255a582ddd203baa73d3dcc1db7.tar.zst
zsh-cb4bb129dd143255a582ddd203baa73d3dcc1db7.zip
more option setting cleanup; remove some unnecessary setopts, remove N qualifiers (12917)
Diffstat (limited to 'Completion/Builtins/_cd')
-rw-r--r--Completion/Builtins/_cd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Builtins/_cd b/Completion/Builtins/_cd
index 3abe26049..05d5e6f88 100644
--- a/Completion/Builtins/_cd
+++ b/Completion/Builtins/_cd
@@ -19,7 +19,7 @@ if [[ CURRENT -eq 3 ]]; then
# cd old new: look for old in $PWD and see what can replace it
local rep
# Get possible completions using word in position 2
- rep=(${~PWD/$words[2]/*}~$PWD(-/N))
+ rep=(${~PWD/$words[2]/*}~$PWD(-/))
# Now remove all the common parts of $PWD and the completions from this
rep=(${${rep#${PWD%%$words[2]*}}%${PWD#*$words[2]}})
(( $#rep )) && _wanted -C replacement strings expl replacement compadd -a rep