]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.0-124 v7.0.124
authorBram Moolenaar <Bram@vim.org>
Tue, 10 Oct 2006 10:55:47 +0000 (10:55 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 10 Oct 2006 10:55:47 +0000 (10:55 +0000)
src/eval.c
src/version.c

index d32efaa7b66aef51e57774702f74f38cef85798b..13c0bd618c5ec375d6d03b91125752553be9ae62 100644 (file)
@@ -10432,20 +10432,14 @@ getwinvar(argvars, rettv, off)
 
     if (win != NULL && varname != NULL)
     {
-       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;
+       /* 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 */
            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;
index 5ebaecc1894408e25fb7e524a147323311b35034..f148a358eb80b76dffe1f154e7793f29d938bd99 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    124,
 /**/
     123,
 /**/