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
commit6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25 (patch)
tree7e2d8fe8700b6739dce9416f38ba7bccae0d1ce4 /Completion/Base
parent7d84cde31330023b264a415ffa02686ee0338b4f (diff)
downloadzsh-6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25.tar.gz
zsh-6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25.tar.xz
zsh-6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25.zip
44202 (tweaked): _normal: Add -P to reset precommands
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Core/_normal3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Base/Core/_normal b/Completion/Base/Core/_normal
index 7732837ac..0d84eae87 100644
--- a/Completion/Base/Core/_normal
+++ b/Completion/Base/Core/_normal
@@ -3,8 +3,9 @@
 local _comp_command1 _comp_command2 _comp_command precommand
 local -A opts
 
-zparseopts -A opts -D - p+:-=precommand s
+zparseopts -A opts -D - P p+:-=precommand s
 (( $+opts[-s] )) || _compskip=
+(( $+opts[-P] )) && precommands=()
 (( $#precommand )) && precommands+=(${precommand#-p})
 
 # Check for a history reference to complete modifiers.