diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2023-09-14 13:57:07 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2023-09-15 21:09:51 +0200 |
| commit | aecef41f2e47e738214cf6c55a383b4eae87902f (patch) | |
| tree | cf2c262c26b8366806d2a43ffc59d760c45bd136 /Completion/Zsh/Context/_parameter | |
| parent | 52122 + 52129: fix (#) parameter expansion flag (diff) | |
| download | zsh-aecef41f2e47e738214cf6c55a383b4eae87902f.tar zsh-aecef41f2e47e738214cf6c55a383b4eae87902f.tar.gz zsh-aecef41f2e47e738214cf6c55a383b4eae87902f.tar.bz2 zsh-aecef41f2e47e738214cf6c55a383b4eae87902f.tar.lz zsh-aecef41f2e47e738214cf6c55a383b4eae87902f.tar.xz zsh-aecef41f2e47e738214cf6c55a383b4eae87902f.tar.zst zsh-aecef41f2e47e738214cf6c55a383b4eae87902f.zip | |
52142: Move _history_modifiers call to _parameter
_parameters is used in many contexts, like assignments in command
position, assignment after typeset, etc, where history modifiers are not
valid. _brace_parameter already calls _history_modifiers explicitly so
this seems more in line with that.
Diffstat (limited to 'Completion/Zsh/Context/_parameter')
| -rw-r--r-- | Completion/Zsh/Context/_parameter | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/Zsh/Context/_parameter b/Completion/Zsh/Context/_parameter index 7e7788535..b08d665f5 100644 --- a/Completion/Zsh/Context/_parameter +++ b/Completion/Zsh/Context/_parameter @@ -1,3 +1,8 @@ #compdef -parameter- +if compset -P '*:'; then + _history_modifiers p + return +fi + _parameters -e |
