]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.436 v7.4.436
authorBram Moolenaar <Bram@vim.org>
Tue, 9 Sep 2014 14:59:38 +0000 (16:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 9 Sep 2014 14:59:38 +0000 (16:59 +0200)
Problem:    ml_get error for autocommand that moves the cursor of the current
            window.
Solution:   Check the cursor position after switching back to the current
            buffer.  (Christian Brabandt)

src/fileio.c
src/version.c

index f2d204078670371119d100fb1d985b220783342f..b9221ed400b8b8307c62211ed3075e83f5add14b 100644 (file)
@@ -9009,6 +9009,9 @@ win_found:
 
            curwin = aco->save_curwin;
            curbuf = curwin->w_buffer;
+           /* In case the autocommand move the cursor to a position that that
+            * not exist in curbuf. */
+           check_cursor();
        }
     }
 }
index 5025c688757bbade2f9e7a8b3f7813d0c55f0639..521f2d88c9eca13ba38cea46711550bac7dd854c 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    436,
 /**/
     435,
 /**/