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
This commit is contained in:
Philip Sequeira 2015-12-07 18:23:25 -05:00 committed by Frank Terbeck
parent aedff53d1f
commit 038b1d4b38
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2015-12-23 Philip Sequeira <phsequei@gmail.com>
* 37345: Functions/VCS_Info/VCS_INFO_maxexports,
Functions/VCS_Info/VCS_INFO_set: VCS_INFO functions break with
setopt no_unset
2015-12-19 Barton E. Schaefer <schaefer@zsh.org>
* users/21082 (expanded): Functions/Misc/is-at-least: do a more

View File

@ -2,7 +2,7 @@
## Written by Frank Terbeck <ft@bewatermyfriend.org>
## 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

View File

@ -2,7 +2,7 @@
## Written by Frank Terbeck <ft@bewatermyfriend.org>
## 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