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