1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-19 22:46:03 +02:00

30461, 30462 (tweaked): add missing local for match, mbegin and mend

This commit is contained in:
Mikael Magnusson 2012-05-02 13:09:37 +00:00
parent cd1b5d86e0
commit 150dc9021b
5 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2012-05-02 Mikael Magnusson <mikachu@gmail.com>
* 30461, 30462 (tweaked): Functions/Prompts/promptinit,
Functions/VCS_Info/vcs_info_setsys, Functions/Zftp/zfcd_match,
Functions/Zle/url-quote-magic: add missing local for match,
mbegin and mend.
2012-05-01 Peter Stephenson <p.w.stephenson@ntlworld.com>
* users/17046: Src/utils.c, Test/D04parameter.ztst: don't
@ -16260,5 +16267,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5645 $
* $Revision: 1.5646 $
*****************************************************

View File

@ -15,6 +15,7 @@ promptinit () {
emulate -L zsh
setopt extendedglob
local ppath='' name theme
local -a match mbegin mend
# Autoload all prompt_*_setup functions in fpath
for theme in $^fpath/prompt_*_setup(N); do

View File

@ -7,6 +7,7 @@ setopt extendedglob typeset_silent
local sys
typeset -ga VCS_INFO_backends
local -a match mbegin mend
VCS_INFO_backends=()

View File

@ -13,6 +13,7 @@ local ZFTP_VERBOSE=45
# should we redirect 2>/dev/null or let the user see it?
local tmpf=${TMPPREFIX}zfcm$$
local -a match mbegin mend
if [[ $ZFTP_SYSTEM = UNIX* ]]; then
# hoo, aren't we lucky: this makes things so much easier

View File

@ -60,7 +60,7 @@
# Use compsys for nested quoting analysis and command parsing.
# Establish default values for styles, but only if not already set
local -a reply
local -a reply match mbegin mend
zstyle -m ':url-quote-magic:\*' url-metas '*' ||
zstyle ':url-quote-magic:*' url-metas '*?[]^(|)~#{}='