1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-14 08:08:10 +02:00

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.
This commit is contained in:
Mikael Magnusson 2023-09-14 13:57:07 +02:00
parent 0eab788437
commit aecef41f2e
3 changed files with 11 additions and 5 deletions
ChangeLog
Completion/Zsh

View file

@ -1,3 +1,9 @@
2023-09-15 Mikael Magnusson <mikachu@gmail.com>
* 52142: Completion/Zsh/Context/_parameter,
Completion/Zsh/Type/_parameters: Move _history_modifiers call
to _parameter
2023-09-13 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 52122 + 52129: Src/subst.c, Test/D04parameter.ztst: fix (#)

View file

@ -1,3 +1,8 @@
#compdef -parameter-
if compset -P '*:'; then
_history_modifiers p
return
fi
_parameters -e

View file

@ -6,11 +6,6 @@
# If you specify a -g option with a pattern, the pattern will be used to
# restrict the type of parameters matched.
if compset -P '*:'; then
_history_modifiers p
return
fi
local i pfilt
local -i nm=$compstate[nmatches]
local -a expl pattern=( -g \* ) normal described verbose faked fakes tmp