0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0061

This commit is contained in:
Bram Moolenaar
2005-03-18 20:30:32 +00:00
parent 5409c051a5
commit c07611362a
7 changed files with 77 additions and 50 deletions

View File

@@ -9042,14 +9042,17 @@ f_getwinvar(argvars, rettv)
{
if (*varname == '&') /* window-local-option */
{
/* set curwin to be our win, temporarily */
/* 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
{