summaryrefslogtreecommitdiff
path: root/Functions/VCS_Info/VCS_INFO_set
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_set')
-rw-r--r--Functions/VCS_Info/VCS_INFO_set6
1 files changed, 3 insertions, 3 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_set b/Functions/VCS_Info/VCS_INFO_set
index 5087be43f..484c7937d 100644
--- a/Functions/VCS_Info/VCS_INFO_set
+++ b/Functions/VCS_Info/VCS_INFO_set
@@ -8,7 +8,7 @@ local -i i j
if [[ $1 == '--nvcs' ]] ; then
[[ $2 == '-preinit-' ]] && (( maxexports == 0 )) && (( maxexports = 1 ))
for i in {0..$((maxexports - 1))} ; do
- typeset -gx vcs_info_msg_${i}_=
+ typeset -g vcs_info_msg_${i}_=
done
VCS_INFO_nvcsformats $2
[[ $2 != '-preinit-' ]] && VCS_INFO_hook "no-vcs"
@@ -17,12 +17,12 @@ fi
(( ${#msgs} - 1 < 0 )) && return 0
for i in {0..$(( ${#msgs} - 1 ))} ; do
(( j = i + 1 ))
- typeset -gx vcs_info_msg_${i}_=${msgs[$j]}
+ typeset -g vcs_info_msg_${i}_=${msgs[$j]}
done
if (( i < maxexports )) ; then
for j in {$(( i + 1 ))..${maxexports}} ; do
- [[ -n ${(P)${:-vcs_info_msg_${j}_}} ]] && typeset -gx vcs_info_msg_${j}_=
+ [[ -n ${(P)${:-vcs_info_msg_${j}_}} ]] && typeset -g vcs_info_msg_${j}_=
done
fi
return 0