Blame SOURCES/7.4.436

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