From 6f35d6c0d0eeb80c0145e5226285a8a45ffb5f25 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Thu, 4 Apr 2019 18:45:19 -0500 Subject: 44202 (tweaked): _normal: Add -P to reset precommands --- Completion/Base/Core/_normal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion/Base') 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. -- cgit 1.4.1