073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.436
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.436
073263
Problem:    ml_get error for autocommand that moves the cursor of the current
073263
	    window.
073263
Solution:   Check the cursor position after switching back to the current
073263
	    buffer.  (Christian Brabandt)
073263
Files:	    src/fileio.c
073263
073263
073263
*** ../vim-7.4.435/src/fileio.c	2014-08-22 23:05:50.106606614 +0200
073263
--- src/fileio.c	2014-09-09 16:46:29.224536073 +0200
073263
***************
073263
*** 9009,9014 ****
073263
--- 9009,9017 ----
073263
  
073263
  	    curwin = aco->save_curwin;
073263
  	    curbuf = curwin->w_buffer;
073263
+ 	    /* In case the autocommand move the cursor to a position that that
073263
+ 	     * not exist in curbuf. */
073263
+ 	    check_cursor();
073263
  	}
073263
      }
073263
  }
073263
*** ../vim-7.4.435/src/version.c	2014-09-09 16:32:35.828534252 +0200
073263
--- src/version.c	2014-09-09 16:48:14.796536303 +0200
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     436,
073263
  /**/
073263
073263
-- 
073263
In a world without walls and borders, who needs windows and gates?
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///