From 5facfd32805831230f9b42b7ec9765e858b553a8 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Thu, 4 Apr 2019 18:45:19 -0500 Subject: 44200 (tweaked): Completion: Append to precommands in _normal --- Completion/Base/Core/_normal | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion/Base') 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 -- cgit 1.4.1