Skip to content

Commit 9414507

Browse files
committed
updated for version 7.4.640
Problem: After deleting characters in Insert mode such that lines are joined undo does not work properly. (issue 324) Solution: Use Insstart instead of Insstart_orig. (Christian Brabandt)
1 parent 2fec4c0 commit 9414507

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/edit.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8842,7 +8842,7 @@ ins_bs(c, mode, inserted_space_p)
88428842
*/
88438843
if (curwin->w_cursor.col == 0)
88448844
{
8845-
lnum = Insstart_orig.lnum;
8845+
lnum = Insstart.lnum;
88468846
if (curwin->w_cursor.lnum == lnum
88478847
#ifdef FEAT_RIGHTLEFT
88488848
|| revins_on
@@ -8852,9 +8852,8 @@ ins_bs(c, mode, inserted_space_p)
88528852
if (u_save((linenr_T)(curwin->w_cursor.lnum - 2),
88538853
(linenr_T)(curwin->w_cursor.lnum + 1)) == FAIL)
88548854
return FALSE;
8855-
--Insstart_orig.lnum;
8856-
Insstart_orig.col = MAXCOL;
8857-
Insstart = Insstart_orig;
8855+
--Insstart.lnum;
8856+
Insstart.col = MAXCOL;
88588857
}
88598858
/*
88608859
* In replace mode:

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
640,
744746
/**/
745747
639,
746748
/**/

0 commit comments

Comments
 (0)