summary refs log tree commit diff
path: root/Completion/Zsh/Context/_subscript
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-06-03 20:51:37 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-06-03 20:51:37 +0000
commit0bff0b356ca7050280ebe02a588d74a95c7e7f5c (patch)
tree609209e548420f75d19058084129767567915305 /Completion/Zsh/Context/_subscript
parent12e246495c2f40ca289b27a552d548318f255472 (diff)
downloadzsh-0bff0b356ca7050280ebe02a588d74a95c7e7f5c.tar.gz
zsh-0bff0b356ca7050280ebe02a588d74a95c7e7f5c.tar.xz
zsh-0bff0b356ca7050280ebe02a588d74a95c7e7f5c.zip
29438: complete dynamic directory names in command position
Diffstat (limited to 'Completion/Zsh/Context/_subscript')
-rw-r--r--Completion/Zsh/Context/_subscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index 31da97e26..cf1ec49a4 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -18,7 +18,7 @@ compset -P '\(([^\(\)]|\(*\))##\)' # remove subscript flags
 # or colon list.
 integer pos=$((CURSOR+1))
 while [[ pos -gt 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done
-if [[ $BUFFER[1,pos-1] = *[[:space:]:=]##\~\[ ]]; then
+if [[ $BUFFER[1,pos-1] = (|*[[:space:]:=]##)\~\[ ]]; then
   _dynamic_directory_name
 elif [[ "$PREFIX" = :* ]]; then
   _wanted characters expl 'character class' \