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 --- Doc/Zsh/compsys.yo | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index f0fdbf293..8b00517b7 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -4658,7 +4658,7 @@ fi return ret) ) findex(_normal) -item(tt(_normal) [ tt(-p) var(precommand) ])( +item(tt(_normal) [ tt(-P) | tt(-p) var(precommand) ])( This is the standard function called to handle completion outside any special tt(-)var(context)tt(-). It is called both to complete the command word and also the arguments for a command. In the second case, @@ -4674,9 +4674,14 @@ then calls `tt(_normal -p $service)'. The effect is that `tt(nohup) var(cmd ...)' is treated in the same way as `var(cmd ...)'. startitem() +item(tt(-P))( +Reset the list of precommands. This option should be used if completing +a command line which allows internal commands (e.g. builtins and +functions) regardless of prior precommands (e.g. `tt(zsh -c)'). +) item(tt(-p) var(precommand))( Append var(precommand) to the list of precommands. This option should be -used in nearly all cases. +used in nearly all cases in which tt(-P) is not applicable. ) enditem() -- cgit 1.4.1