Karsten Hopp 3e6a87
To: vim_dev@googlegroups.com
Karsten Hopp 3e6a87
Subject: Patch 7.3.466
Karsten Hopp 3e6a87
Fcc: outbox
Karsten Hopp 3e6a87
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 3e6a87
Mime-Version: 1.0
Karsten Hopp 3e6a87
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 3e6a87
Content-Transfer-Encoding: 8bit
Karsten Hopp 3e6a87
------------
Karsten Hopp 3e6a87
Karsten Hopp 3e6a87
Patch 7.3.466
Karsten Hopp 3e6a87
Problem:    Get ml_get error when ":behave mswin" was used and selecting
Karsten Hopp 3e6a87
	    several lines.  (A. Sinan Unur)
Karsten Hopp 3e6a87
Solution:   Adjust the end of the operation. (Christian Brabandt)
Karsten Hopp 3e6a87
Files:	    src/ops.c
Karsten Hopp 3e6a87
Karsten Hopp 3e6a87
Karsten Hopp 3e6a87
*** ../vim-7.3.465/src/ops.c	2012-02-22 17:37:55.000000000 +0100
Karsten Hopp 3e6a87
--- src/ops.c	2012-03-07 19:27:08.000000000 +0100
Karsten Hopp 3e6a87
***************
Karsten Hopp 3e6a87
*** 1957,1962 ****
Karsten Hopp 3e6a87
--- 1957,1965 ----
Karsten Hopp 3e6a87
  	    ++curwin->w_cursor.lnum;
Karsten Hopp 3e6a87
  	    del_lines((long)(oap->line_count - 2), FALSE);
Karsten Hopp 3e6a87
  
Karsten Hopp 3e6a87
+ 	    if (delete_last_line)
Karsten Hopp 3e6a87
+ 		oap->end.lnum = curbuf->b_ml.ml_line_count;
Karsten Hopp 3e6a87
+ 
Karsten Hopp 3e6a87
  	    n = (oap->end.col + 1 - !oap->inclusive);
Karsten Hopp 3e6a87
  	    if (oap->inclusive && delete_last_line
Karsten Hopp 3e6a87
  		    && n > (int)STRLEN(ml_get(oap->end.lnum)))
Karsten Hopp 3e6a87
*** ../vim-7.3.465/src/version.c	2012-03-07 19:16:49.000000000 +0100
Karsten Hopp 3e6a87
--- src/version.c	2012-03-07 19:29:52.000000000 +0100
Karsten Hopp 3e6a87
***************
Karsten Hopp 3e6a87
*** 716,717 ****
Karsten Hopp 3e6a87
--- 716,719 ----
Karsten Hopp 3e6a87
  {   /* Add new patch number below this line */
Karsten Hopp 3e6a87
+ /**/
Karsten Hopp 3e6a87
+     466,
Karsten Hopp 3e6a87
  /**/
Karsten Hopp 3e6a87
Karsten Hopp 3e6a87
-- 
Karsten Hopp 3e6a87
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 3e6a87
153. You find yourself staring at your "inbox" waiting for new e-mail
Karsten Hopp 3e6a87
     to arrive.
Karsten Hopp 3e6a87
Karsten Hopp 3e6a87
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 3e6a87
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 3e6a87
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 3e6a87
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///