diff options
| author | Matthew Martin <phy1729@gmail.com> | 2019-04-04 18:45:19 -0500 |
|---|---|---|
| committer | Matthew Martin <phy1729@gmail.com> | 2019-04-04 18:45:19 -0500 |
| commit | 5facfd32805831230f9b42b7ec9765e858b553a8 (patch) | |
| tree | 338774bab29346eaa1f29dff5813f71611613157 /Completion/Base | |
| parent | 44199: _normal: Use zparseopts (diff) | |
| download | zsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar zsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar.gz zsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar.bz2 zsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar.lz zsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar.xz zsh-5facfd32805831230f9b42b7ec9765e858b553a8.tar.zst zsh-5facfd32805831230f9b42b7ec9765e858b553a8.zip | |
44200 (tweaked): Completion: Append to precommands in _normal
Diffstat (limited to 'Completion/Base')
| -rw-r--r-- | Completion/Base/Core/_normal | 5 |
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 |
