From 038b1d4b38fca3b2067bcc322096a00179f63b88 Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Mon, 7 Dec 2015 18:23:25 -0500 Subject: 37345: VCS_INFO functions break with setopt no_unset With setopt no_unset in my config file, vcs_info fails with: VCS_INFO_maxexports:7: vcs: parameter not set --- Functions/VCS_Info/VCS_INFO_maxexports | 2 +- Functions/VCS_Info/VCS_INFO_set | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions') diff --git a/Functions/VCS_Info/VCS_INFO_maxexports b/Functions/VCS_Info/VCS_INFO_maxexports index ea952517f..d697b9abd 100644 --- a/Functions/VCS_Info/VCS_INFO_maxexports +++ b/Functions/VCS_Info/VCS_INFO_maxexports @@ -2,7 +2,7 @@ ## Written by Frank Terbeck ## Distributed under the same BSD-ish license as zsh itself. -setopt localoptions NO_shwordsplit +setopt localoptions NO_shwordsplit unset zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" "max-exports" maxexports || maxexports=2 if [[ ${maxexports} != <-> ]] || (( maxexports < 1 )); then diff --git a/Functions/VCS_Info/VCS_INFO_set b/Functions/VCS_Info/VCS_INFO_set index 484c7937d..e3f62ceef 100644 --- a/Functions/VCS_Info/VCS_INFO_set +++ b/Functions/VCS_Info/VCS_INFO_set @@ -2,7 +2,7 @@ ## Written by Frank Terbeck ## Distributed under the same BSD-ish license as zsh itself. -setopt localoptions noksharrays NO_shwordsplit +setopt localoptions noksharrays NO_shwordsplit unset local -i i j if [[ $1 == '--nvcs' ]] ; then -- cgit 1.4.1