Karsten Hopp de35af
To: vim_dev@googlegroups.com
Karsten Hopp de35af
Subject: Patch 7.4.099
Karsten Hopp de35af
Fcc: outbox
Karsten Hopp de35af
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp de35af
Mime-Version: 1.0
Karsten Hopp de35af
Content-Type: text/plain; charset=UTF-8
Karsten Hopp de35af
Content-Transfer-Encoding: 8bit
Karsten Hopp de35af
------------
Karsten Hopp de35af
Karsten Hopp de35af
Patch 7.4.099
Karsten Hopp de35af
Problem:    Append in blockwise Visual mode with "$" is wrong.
Karsten Hopp de35af
Solution:   After "$" don't use the code that checks if the cursor was moved.
Karsten Hopp de35af
	    (Hirohito Higashi, Ken Takata)
Karsten Hopp de35af
Files:	    src/ops.c, src/testdir/test39.in, src/testdir/test39.ok
Karsten Hopp de35af
Karsten Hopp de35af
Karsten Hopp de35af
*** ../vim-7.4.098/src/ops.c	2013-11-21 13:24:36.000000000 +0100
Karsten Hopp de35af
--- src/ops.c	2013-11-21 14:33:57.000000000 +0100
Karsten Hopp de35af
***************
Karsten Hopp de35af
*** 2643,2649 ****
Karsten Hopp de35af
  
Karsten Hopp de35af
  	/* The user may have moved the cursor before inserting something, try
Karsten Hopp de35af
  	 * to adjust the block for that. */
Karsten Hopp de35af
! 	if (oap->start.lnum == curbuf->b_op_start.lnum)
Karsten Hopp de35af
  	{
Karsten Hopp de35af
  	    if (oap->op_type == OP_INSERT
Karsten Hopp de35af
  		    && oap->start.col != curbuf->b_op_start.col)
Karsten Hopp de35af
--- 2643,2649 ----
Karsten Hopp de35af
  
Karsten Hopp de35af
  	/* The user may have moved the cursor before inserting something, try
Karsten Hopp de35af
  	 * to adjust the block for that. */
Karsten Hopp de35af
! 	if (oap->start.lnum == curbuf->b_op_start.lnum && !bd.is_MAX)
Karsten Hopp de35af
  	{
Karsten Hopp de35af
  	    if (oap->op_type == OP_INSERT
Karsten Hopp de35af
  		    && oap->start.col != curbuf->b_op_start.col)
Karsten Hopp de35af
*** ../vim-7.4.098/src/testdir/test39.in	2013-11-11 01:29:16.000000000 +0100
Karsten Hopp de35af
--- src/testdir/test39.in	2013-11-21 14:25:55.000000000 +0100
Karsten Hopp de35af
***************
Karsten Hopp de35af
*** 23,28 ****
Karsten Hopp de35af
--- 23,40 ----
Karsten Hopp de35af
  /^aaaa/
Karsten Hopp de35af
  :exe ":norm! l\<C-V>jjjlllI\<Right>\<Right>  \<Esc>"
Karsten Hopp de35af
  :/^aa/,/^$/w >> test.out
Karsten Hopp de35af
+ :" Test for Visual block was created with the last <C-v>$
Karsten Hopp de35af
+ /^A23$/
Karsten Hopp de35af
+ :exe ":norm! l\<C-V>j$Aab\<Esc>"
Karsten Hopp de35af
+ :.,/^$/w >> test.out
Karsten Hopp de35af
+ :" Test for Visual block was created with the middle <C-v>$ (1)
Karsten Hopp de35af
+ /^B23$/
Karsten Hopp de35af
+ :exe ":norm! l\<C-V>j$hAab\<Esc>"
Karsten Hopp de35af
+ :.,/^$/w >> test.out
Karsten Hopp de35af
+ :" Test for Visual block was created with the middle <C-v>$ (2)
Karsten Hopp de35af
+ /^C23$/
Karsten Hopp de35af
+ :exe ":norm! l\<C-V>j$hhAab\<Esc>"
Karsten Hopp de35af
+ :.,/^$/w >> test.out
Karsten Hopp de35af
  :" gUe must uppercase a whole word, also when ß changes to SS
Karsten Hopp de35af
  Gothe youtußeuu end?Ypk0wgUe
Karsten Hopp de35af
  :" gUfx must uppercase until x, inclusive.
Karsten Hopp de35af
***************
Karsten Hopp de35af
*** 49,54 ****
Karsten Hopp de35af
--- 61,75 ----
Karsten Hopp de35af
  cccccc
Karsten Hopp de35af
  dddddd
Karsten Hopp de35af
  
Karsten Hopp de35af
+ A23
Karsten Hopp de35af
+ 4567
Karsten Hopp de35af
+ 
Karsten Hopp de35af
+ B23
Karsten Hopp de35af
+ 4567
Karsten Hopp de35af
+ 
Karsten Hopp de35af
+ C23
Karsten Hopp de35af
+ 4567
Karsten Hopp de35af
+ 
Karsten Hopp de35af
  abcdefghijklm
Karsten Hopp de35af
  abcdefghijklm
Karsten Hopp de35af
  abcdefghijklm
Karsten Hopp de35af
*** ../vim-7.4.098/src/testdir/test39.ok	2013-11-11 01:29:16.000000000 +0100
Karsten Hopp de35af
--- src/testdir/test39.ok	2013-11-21 14:25:10.000000000 +0100
Karsten Hopp de35af
***************
Karsten Hopp de35af
*** 8,13 ****
Karsten Hopp de35af
--- 8,22 ----
Karsten Hopp de35af
  ccc  ccc
Karsten Hopp de35af
  ddd  ddd
Karsten Hopp de35af
  
Karsten Hopp de35af
+ A23ab
Karsten Hopp de35af
+ 4567ab
Karsten Hopp de35af
+ 
Karsten Hopp de35af
+ B23 ab
Karsten Hopp de35af
+ 4567ab
Karsten Hopp de35af
+ 
Karsten Hopp de35af
+ C23ab
Karsten Hopp de35af
+ 456ab7
Karsten Hopp de35af
+ 
Karsten Hopp de35af
  the YOUTUSSEUU end
Karsten Hopp de35af
  - yOUSSTUSSEXu -
Karsten Hopp de35af
  THE YOUTUSSEUU END
Karsten Hopp de35af
*** ../vim-7.4.098/src/version.c	2013-11-21 14:21:25.000000000 +0100
Karsten Hopp de35af
--- src/version.c	2013-11-21 14:34:28.000000000 +0100
Karsten Hopp de35af
***************
Karsten Hopp de35af
*** 740,741 ****
Karsten Hopp de35af
--- 740,743 ----
Karsten Hopp de35af
  {   /* Add new patch number below this line */
Karsten Hopp de35af
+ /**/
Karsten Hopp de35af
+     99,
Karsten Hopp de35af
  /**/
Karsten Hopp de35af
Karsten Hopp de35af
-- 
Karsten Hopp de35af
If the Universe is constantly expanding, why can't I ever find a parking space?
Karsten Hopp de35af
Karsten Hopp de35af
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp de35af
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp de35af
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp de35af
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///