0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.823

Problem:    Cursor moves after CTRL-A on alphabetic character.
Solution:   (Hirohito Higashi, test by Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-08-11 19:36:42 +02:00
parent cde8854730
commit 25c2f6783a
4 changed files with 35 additions and 1 deletions

View File

@@ -5584,6 +5584,7 @@ do_addsub(command, Prenum1, g_cmd)
did_change = TRUE; did_change = TRUE;
(void)del_char(FALSE); (void)del_char(FALSE);
ins_char(firstdigit); ins_char(firstdigit);
curwin->w_cursor.col = col;
} }
else else
{ {

View File

@@ -268,7 +268,15 @@ Text:
Expected: Expected:
1) <Ctrl-V>j$ <ctrl-a> 1) <Ctrl-V>j$ <ctrl-a>
2 2
1b 2a
20) increment a single letter
Text:
a
Expected:
1) <Ctrl-a> and cursor is on a
b
@@ -386,6 +394,13 @@ V3kg..
k$ k$
:set nrformats&vim :set nrformats&vim
:" Test 20
:set nrformats+=alpha
:/^S20=/+,/^E20=/-y a
:/^E20=/+put a
:.put =col('.')
:set nrformats&vim
:" Save the report :" Save the report
:/^# Test 1/,$w! test.out :/^# Test 1/,$w! test.out
:qa! :qa!
@@ -572,6 +587,13 @@ E19====
# Test 20
S20====
a
E20====
ENDTEST ENDTEST

View File

@@ -271,6 +271,15 @@ E19====
2a 2a
# Test 20
S20====
a
E20====
b
1
ENDTEST ENDTEST

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
823,
/**/ /**/
822, 822,
/**/ /**/