about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2019-04-04 18:45:19 -0500
committerMatthew Martin <phy1729@gmail.com>2019-04-04 18:45:19 -0500
commit5facfd32805831230f9b42b7ec9765e858b553a8 (patch)
tree338774bab29346eaa1f29dff5813f71611613157 /Completion/Base
parentbb790c8f8118d4428d8effc65b1c5dc03d1637f6 (diff)
downloadzsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar.gz
zsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar.xz
zsh-5facfd32805831230f9b42b7ec9765e858b553a8.zip
44200 (tweaked): Completion: Append to precommands in _normal
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Core/_normal5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Base/Core/_normal b/Completion/Base/Core/_normal
index fe336e303..7732837ac 100644
--- a/Completion/Base/Core/_normal
+++ b/Completion/Base/Core/_normal
@@ -1,10 +1,11 @@
 #compdef -command-line-
 
-local _comp_command1 _comp_command2 _comp_command
+local _comp_command1 _comp_command2 _comp_command precommand
 local -A opts
 
-zparseopts -A opts -D - s
+zparseopts -A opts -D - p+:-=precommand s
 (( $+opts[-s] )) || _compskip=
+(( $#precommand )) && precommands+=(${precommand#-p})
 
 # Check for a history reference to complete modifiers.
 # $PREFIX has a quoted form of the !, so we can't test that