about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorStephane Chazelas <stephane@chazelas.org>2023-06-02 16:09:53 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2023-06-06 09:22:18 +0100
commit0577dafcaa9d5f7cdbf5637b2dea5ed71dd5af81 (patch)
tree3a0d5928ee437d4e210e9224aec347baaa8c04bf /Completion/Zsh
parent78102120b9c9e7485e7f537864fc2c24fbe0071a (diff)
downloadzsh-0577dafcaa9d5f7cdbf5637b2dea5ed71dd5af81.tar.gz
zsh-0577dafcaa9d5f7cdbf5637b2dea5ed71dd5af81.tar.xz
zsh-0577dafcaa9d5f7cdbf5637b2dea5ed71dd5af81.zip
Protect some :s from history modifier expansion
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Command/_cd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd
index 961d121e0..9ca846c8f 100644
--- a/Completion/Zsh/Command/_cd
+++ b/Completion/Zsh/Command/_cd
@@ -73,7 +73,7 @@ else
     if zstyle -t ":completion:${curcontext}:path-directories" separate-sections; then
       local elem
       for ((elem=1; elem <= $#tmpcdpath; elem++)); do
-        alt+=( "path-directories-$elem:directory in $tmpcdpath[$elem]:_path_files -W 'tmpcdpath[$elem]' -/" )
+        alt+=( "path-directories-${elem}:directory in ${tmpcdpath[$elem]}:_path_files -W 'tmpcdpath[$elem]' -/" )
       done
     else
       (( $#tmpcdpath )) &&