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