summaryrefslogtreecommitdiff
path: root/Functions/VCS_Info/VCS_INFO_set
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2011-06-02 10:50:35 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2011-06-02 10:50:35 +0200
commit2438a0e95aa448f0aeda468752444306b44fe7d0 (patch)
tree8477e9c6af360f6a89af13e8cb5f2a4f9c1cff2c /Functions/VCS_Info/VCS_INFO_set
parentb495ba1e5a3ab1396844490ad8cad17dec23d6c1 (diff)
parent21266db1d9ae433bf1dcb196a4e258c00541b599 (diff)
downloadzsh-2438a0e95aa448f0aeda468752444306b44fe7d0.tar.gz
zsh-2438a0e95aa448f0aeda468752444306b44fe7d0.zip
Merge commit 'zsh-4.3.12' into debian
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_set')
-rw-r--r--Functions/VCS_Info/VCS_INFO_set6
1 files changed, 1 insertions, 5 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_set b/Functions/VCS_Info/VCS_INFO_set
index a2b838cdb..5087be43f 100644
--- a/Functions/VCS_Info/VCS_INFO_set
+++ b/Functions/VCS_Info/VCS_INFO_set
@@ -5,17 +5,13 @@
setopt localoptions noksharrays NO_shwordsplit
local -i i j
-if [[ $1 == '--clear' ]] ; then
- for i in {0..9} ; do
- unset vcs_info_msg_${i}_
- done
-fi
if [[ $1 == '--nvcs' ]] ; then
[[ $2 == '-preinit-' ]] && (( maxexports == 0 )) && (( maxexports = 1 ))
for i in {0..$((maxexports - 1))} ; do
typeset -gx vcs_info_msg_${i}_=
done
VCS_INFO_nvcsformats $2
+ [[ $2 != '-preinit-' ]] && VCS_INFO_hook "no-vcs"
fi
(( ${#msgs} - 1 < 0 )) && return 0