mirror of git://git.code.sf.net/p/zsh/code
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:
parent
aedff53d1f
commit
038b1d4b38
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue