Karsten Hopp 88f121
To: vim_dev@googlegroups.com
Karsten Hopp 88f121
Subject: Patch 7.4.823
Karsten Hopp 88f121
Fcc: outbox
Karsten Hopp 88f121
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 88f121
Mime-Version: 1.0
Karsten Hopp 88f121
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 88f121
Content-Transfer-Encoding: 8bit
Karsten Hopp 88f121
------------
Karsten Hopp 88f121
Karsten Hopp 88f121
Patch 7.4.823
Karsten Hopp 88f121
Problem:    Cursor moves after CTRL-A on alphabetic character.
Karsten Hopp 88f121
Solution:   (Hirohito Higashi, test by Christian Brabandt)
Karsten Hopp 88f121
Files:      src/testdir/test_increment.in, src/testdir/test_increment.ok,
Karsten Hopp 88f121
	    src/ops.c
Karsten Hopp 88f121
Karsten Hopp 88f121
Karsten Hopp 88f121
*** ../vim-7.4.822/src/testdir/test_increment.in	2015-08-04 18:23:16.538332360 +0200
Karsten Hopp 88f121
--- src/testdir/test_increment.in	2015-08-11 19:16:22.060431145 +0200
Karsten Hopp 88f121
***************
Karsten Hopp 88f121
*** 268,274 ****
Karsten Hopp 88f121
   Expected:
Karsten Hopp 88f121
   1) <Ctrl-V>j$ <ctrl-a>
Karsten Hopp 88f121
   2
Karsten Hopp 88f121
!  1b
Karsten Hopp 88f121
     
Karsten Hopp 88f121
  
Karsten Hopp 88f121
  
Karsten Hopp 88f121
--- 268,282 ----
Karsten Hopp 88f121
   Expected:
Karsten Hopp 88f121
   1) <Ctrl-V>j$ <ctrl-a>
Karsten Hopp 88f121
   2
Karsten Hopp 88f121
!  2a
Karsten Hopp 88f121
! 
Karsten Hopp 88f121
! 20) increment a single letter
Karsten Hopp 88f121
! Text:
Karsten Hopp 88f121
!  a
Karsten Hopp 88f121
! 
Karsten Hopp 88f121
!  Expected:
Karsten Hopp 88f121
!  1) <Ctrl-a> and cursor is on a
Karsten Hopp 88f121
!  b
Karsten Hopp 88f121
     
Karsten Hopp 88f121
  
Karsten Hopp 88f121
  
Karsten Hopp 88f121
***************
Karsten Hopp 88f121
*** 386,391 ****
Karsten Hopp 88f121
--- 394,406 ----
Karsten Hopp 88f121
  ?k$?
Karsten Hopp 88f121
  :set nrformats&vim
Karsten Hopp 88f121
  
Karsten Hopp 88f121
+ :" Test 20
Karsten Hopp 88f121
+ :set nrformats+=alpha
Karsten Hopp 88f121
+ :/^S20=/+,/^E20=/-y a
Karsten Hopp 88f121
+ :/^E20=/+put a
Karsten Hopp 88f121
+ ?:.put =col('.')
Karsten Hopp 88f121
+ :set nrformats&vim
Karsten Hopp 88f121
+ 
Karsten Hopp 88f121
  :" Save the report
Karsten Hopp 88f121
  :/^# Test 1/,$w! test.out
Karsten Hopp 88f121
  :qa!
Karsten Hopp 88f121
***************
Karsten Hopp 88f121
*** 572,577 ****
Karsten Hopp 88f121
--- 587,599 ----
Karsten Hopp 88f121
  
Karsten Hopp 88f121
  
Karsten Hopp 88f121
  
Karsten Hopp 88f121
+ # Test 20
Karsten Hopp 88f121
+ S20====
Karsten Hopp 88f121
+ a
Karsten Hopp 88f121
+ E20====
Karsten Hopp 88f121
+ 
Karsten Hopp 88f121
+ 
Karsten Hopp 88f121
+ 
Karsten Hopp 88f121
  
Karsten Hopp 88f121
  ENDTEST
Karsten Hopp 88f121
  
Karsten Hopp 88f121
*** ../vim-7.4.822/src/testdir/test_increment.ok	2015-08-04 18:23:16.538332360 +0200
Karsten Hopp 88f121
--- src/testdir/test_increment.ok	2015-08-11 19:16:22.060431145 +0200
Karsten Hopp 88f121
***************
Karsten Hopp 88f121
*** 271,276 ****
Karsten Hopp 88f121
--- 271,285 ----
Karsten Hopp 88f121
  2a
Karsten Hopp 88f121
  
Karsten Hopp 88f121
  
Karsten Hopp 88f121
+ # Test 20
Karsten Hopp 88f121
+ S20====
Karsten Hopp 88f121
+ a
Karsten Hopp 88f121
+ E20====
Karsten Hopp 88f121
+ 
Karsten Hopp 88f121
+ b
Karsten Hopp 88f121
+ 1
Karsten Hopp 88f121
+ 
Karsten Hopp 88f121
+ 
Karsten Hopp 88f121
  
Karsten Hopp 88f121
  ENDTEST
Karsten Hopp 88f121
  
Karsten Hopp 88f121
*** ../vim-7.4.822/src/ops.c	2015-08-04 18:23:16.538332360 +0200
Karsten Hopp 88f121
--- src/ops.c	2015-08-11 19:17:59.307275090 +0200
Karsten Hopp 88f121
***************
Karsten Hopp 88f121
*** 5584,5589 ****
Karsten Hopp 88f121
--- 5584,5590 ----
Karsten Hopp 88f121
  	    did_change = TRUE;
Karsten Hopp 88f121
  	    (void)del_char(FALSE);
Karsten Hopp 88f121
  	    ins_char(firstdigit);
Karsten Hopp 88f121
+ 	    curwin->w_cursor.col = col;
Karsten Hopp 88f121
  	}
Karsten Hopp 88f121
  	else
Karsten Hopp 88f121
  	{
Karsten Hopp 88f121
*** ../vim-7.4.822/src/version.c	2015-08-11 19:13:55.146175594 +0200
Karsten Hopp 88f121
--- src/version.c	2015-08-11 19:17:41.231489953 +0200
Karsten Hopp 88f121
***************
Karsten Hopp 88f121
*** 743,744 ****
Karsten Hopp 88f121
--- 743,746 ----
Karsten Hopp 88f121
  {   /* Add new patch number below this line */
Karsten Hopp 88f121
+ /**/
Karsten Hopp 88f121
+     823,
Karsten Hopp 88f121
  /**/
Karsten Hopp 88f121
Karsten Hopp 88f121
-- 
Karsten Hopp 88f121
I'm sure that I asked CBuilder to do a "full" install.  Looks like I got
Karsten Hopp 88f121
a "fool" install, instead.		Charles E Campbell, Jr, PhD
Karsten Hopp 88f121
Karsten Hopp 88f121
Karsten Hopp 88f121
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 88f121
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 88f121
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 88f121
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///