1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00

41960: add missing local declarations for MATCH, MBEGIN and MEND

This commit is contained in:
Sebastian Gniazdowski 2017-10-29 12:40:11 +01:00 committed by Oliver Kiddle
parent 08e865ed90
commit 37c5e20a80
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2017-10-29 Oliver Kiddle <opk@zsh.org>
* Sebastian: 41960: Completion/Zsh/Command/_zstyle,
Completion/Zsh/Type/_globquals: declare MATCH, MBEGIN, MEND local
* 41961: Completion/Unix/Command/_ansible: new ansible completion
* 41958: Completion/Linux/Command/_losetup,

View file

@ -1,7 +1,8 @@
#compdef zstyle
local state context ostate line expl ctop suf
local nm=$compstate[nmatches] taglist patterns contexts
local nm=$compstate[nmatches] taglist patterns contexts MATCH
integer MBEGIN MEND
typeset -A opt_args styles
_vcs_info_hooks() {

View file

@ -1,6 +1,7 @@
#autoload
local state=qual expl char delim timespec default
local state=qual expl char delim timespec default MATCH
integer MBEGIN MEND
local -a alts tdisp sdisp tmatch smatch
local -A specmap