about summary refs log tree commit diff
path: root/Completion/Zsh/Context
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh/Context')
-rw-r--r--Completion/Zsh/Context/_subscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index cef0a46e5..899845036 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -14,10 +14,11 @@ compset -P '\(([^\(\)]|\(*\))##\)' # remove subscript flags
 # the stuff inside the square brackets; we need to find out what's
 # outside.  We ought to check for quoting, really, but given we've
 # got to the subscript code " ~[" is pretty likely to be a dynamic
-# name expansion.
+# name expansion.  Also expand in anything that looks like an assignment
+# or colon list.
 integer pos=$((CURSOR+1))
 while [[ pos > 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done
-if [[ $BUFFER[1,pos] = *[[:space:]]##\~\[ ]]; then
+if [[ $BUFFER[1,pos] = *[[:space:]:=]##\~\[ ]]; then
   _dynamic_directory_name
 elif [[ "$PREFIX" = :* ]]; then
   _wanted characters expl 'character class' \