mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 05:21:00 +01:00
30461, 30462 (tweaked): add missing local for match, mbegin and mend
This commit is contained in:
parent
cd1b5d86e0
commit
150dc9021b
5 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ setopt extendedglob typeset_silent
|
|||
|
||||
local sys
|
||||
typeset -ga VCS_INFO_backends
|
||||
local -a match mbegin mend
|
||||
|
||||
VCS_INFO_backends=()
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 '*?[]^(|)~#{}='
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue