mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
Frank: 27717: option terminators in VCS Info
This commit is contained in:
parent
406a6135b0
commit
1c7075f8b9
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-02-17 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* Frank: 27717: Functions/VCS_Info/vcs_info_lastmsg:
|
||||||
|
add option terminators for builtins.
|
||||||
|
|
||||||
2010-12-17 Andrey Borzenkov <bor@zsh.org>
|
2010-12-17 Andrey Borzenkov <bor@zsh.org>
|
||||||
|
|
||||||
* unposted: Doc/Zsh/compsys.yo: typo fix
|
* unposted: Doc/Zsh/compsys.yo: typo fix
|
||||||
|
@ -12769,5 +12774,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.4904 $
|
* $Revision: 1.4905 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -9,11 +9,11 @@ local -ix maxexports
|
||||||
|
|
||||||
VCS_INFO_maxexports
|
VCS_INFO_maxexports
|
||||||
for i in {0..$((maxexports - 1))} ; do
|
for i in {0..$((maxexports - 1))} ; do
|
||||||
printf '$vcs_info_msg_%d_: "' $i
|
printf -- '$vcs_info_msg_%d_: "' $i
|
||||||
if zstyle -T ':vcs_info:formats:command:-all-' use-prompt-escapes ; then
|
if zstyle -T ':vcs_info:formats:command:-all-' use-prompt-escapes ; then
|
||||||
print -nP ${(P)${:-vcs_info_msg_${i}_}}
|
print -nP -- ${(P)${:-vcs_info_msg_${i}_}}
|
||||||
else
|
else
|
||||||
print -n ${(P)${:-vcs_info_msg_${i}_}}
|
print -n -- ${(P)${:-vcs_info_msg_${i}_}}
|
||||||
fi
|
fi
|
||||||
printf '"\n'
|
printf '"\n'
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue