Mercurial > vim
changeset 998:f49d72bf9c5c v7.0.124
updated for version 7.0-124
author | vimboss |
---|---|
date | Tue, 10 Oct 2006 10:55:47 +0000 |
parents | 86289e90a4bb |
children | 2787b8483e64 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -10432,20 +10432,14 @@ getwinvar(argvars, rettv, off) if (win != NULL && varname != NULL) { + /* Set curwin to be our win, temporarily. Also set curbuf, so + * that we can get buffer-local options. */ + oldcurwin = curwin; + curwin = win; + curbuf = win->w_buffer; + if (*varname == '&') /* window-local-option */ - { - /* Set curwin to be our win, temporarily. Also set curbuf, so - * that we can get buffer-local options. */ - oldcurwin = curwin; - curwin = win; - curbuf = win->w_buffer; - get_option_tv(&varname, rettv, 1); - - /* restore previous notion of curwin */ - curwin = oldcurwin; - curbuf = curwin->w_buffer; - } else { if (*varname == NUL) @@ -10458,6 +10452,10 @@ getwinvar(argvars, rettv, off) if (v != NULL) copy_tv(&v->di_tv, rettv); } + + /* restore previous notion of curwin */ + curwin = oldcurwin; + curbuf = curwin->w_buffer; } --emsg_off;