about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-01-28 19:14:30 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-01-28 19:14:30 +0000
commit584ea888115e48da43b01b5f5a7e1511a469f081 (patch)
treec9d17084ba48e6bdc1808e247ba547c038dd0e3e /Completion
parentc56f5aed59a4460d2382ce02eddd0948cab94b17 (diff)
downloadzsh-584ea888115e48da43b01b5f5a7e1511a469f081.tar.gz
zsh-584ea888115e48da43b01b5f5a7e1511a469f081.tar.xz
zsh-584ea888115e48da43b01b5f5a7e1511a469f081.zip
32303: simplistic completion after $x:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Zsh/Context/_brace_parameter3
-rw-r--r--Completion/Zsh/Type/_parameters5
2 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Zsh/Context/_brace_parameter b/Completion/Zsh/Context/_brace_parameter
index c0ecf251b..2aeb12bf4 100644
--- a/Completion/Zsh/Context/_brace_parameter
+++ b/Completion/Zsh/Context/_brace_parameter
@@ -185,6 +185,9 @@ if [[ $PREFIX = *'${('[^\)]# ]]; then
   )
   _describe -t flags "parameter flag" flags -Q -S ''
   return
+elif compset -P '*:'; then
+    _history_modifiers p
+    return
 fi
 
 _parameters -e
diff --git a/Completion/Zsh/Type/_parameters b/Completion/Zsh/Type/_parameters
index 5156e3e2d..eaad3ca9d 100644
--- a/Completion/Zsh/Type/_parameters
+++ b/Completion/Zsh/Type/_parameters
@@ -8,6 +8,11 @@
 
 local expl pattern fakes faked tmp pfilt
 
+if compset -P '*:'; then
+  _history_modifiers p
+  return
+fi
+
 pattern=(-g \*)
 zparseopts -D -K -E g:=pattern