mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-29 16:25:35 +01:00
50786: Make match etc. local when used in styles.
Avoids side effects of add-zle-hook-widget.
This commit is contained in:
parent
727b493e2b
commit
b82e8e1035
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2022-10-17 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 50786: Functions/Misc/add-zle-hook-widget: make match
|
||||
etc. local when used in styles.
|
||||
|
||||
2022-10-17 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* Wesley Schwengle: 50736: Src/Zle/compmatch.c: silence
|
||||
|
|
|
@ -39,7 +39,7 @@ zstyle zle-hook types ${hooktypes#zle-}
|
|||
|
||||
# Relying on multifuncdef option here
|
||||
function azhw:${^hooktypes} {
|
||||
local -a hook_widgets
|
||||
local -a hook_widgets match mbegin mend
|
||||
local hook
|
||||
# Values of these styles look like number:name
|
||||
# and we run them in number order
|
||||
|
@ -58,7 +58,7 @@ function azhw:${^hooktypes} {
|
|||
# Redefine ourself with the setup left out
|
||||
|
||||
function add-zle-hook-widget {
|
||||
local -a hooktypes
|
||||
local -a hooktypes match mbegin mend
|
||||
zstyle -a zle-hook types hooktypes
|
||||
|
||||
# This part copied from add-zsh-hook
|
||||
|
|
Loading…
Reference in a new issue