about summary refs log tree commit diff
path: root/Completion/Base/Core/_main_complete
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
commit7d84cde31330023b264a415ffa02686ee0338b4f (patch)
tree2bd35212c238a10562e195fe8c0dc74c6244215f /Completion/Base/Core/_main_complete
parent5facfd32805831230f9b42b7ec9765e858b553a8 (diff)
downloadzsh-7d84cde31330023b264a415ffa02686ee0338b4f.tar.gz
zsh-7d84cde31330023b264a415ffa02686ee0338b4f.tar.xz
zsh-7d84cde31330023b264a415ffa02686ee0338b4f.zip
44201: _command_name: Check for external forcing precommand
Diffstat (limited to 'Completion/Base/Core/_main_complete')
-rw-r--r--Completion/Base/Core/_main_complete6
1 files changed, 6 insertions, 0 deletions
diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete
index aa2486236..6b2cf2bcf 100644
--- a/Completion/Base/Core/_main_complete
+++ b/Completion/Base/Core/_main_complete
@@ -45,6 +45,12 @@ unset _comp_priv_prefix
 # _precommand sets this to indicate we are following a precommand modifier
 local -a precommands
 
+# Precommands which allow their wrapped command to be a builtin.
+# All of these are necessarily builtins or reserved words themselves,
+# but not all builtin precommands are listed here:
+# for one, the 'command' builtin is excluded.
+local -ar builtin_precommands=(- builtin eval exec nocorrect noglob time)
+
 typeset -U _lastdescr _comp_ignore _comp_colors
 
 {