mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -8842,7 +8842,7 @@ ins_bs(c, mode, inserted_space_p)
|
|||||||
*/
|
*/
|
||||||
if (curwin->w_cursor.col == 0)
|
if (curwin->w_cursor.col == 0)
|
||||||
{
|
{
|
||||||
lnum = Insstart_orig.lnum;
|
lnum = Insstart.lnum;
|
||||||
if (curwin->w_cursor.lnum == lnum
|
if (curwin->w_cursor.lnum == lnum
|
||||||
#ifdef FEAT_RIGHTLEFT
|
#ifdef FEAT_RIGHTLEFT
|
||||||
|| revins_on
|
|| revins_on
|
||||||
@@ -8852,9 +8852,8 @@ ins_bs(c, mode, inserted_space_p)
|
|||||||
if (u_save((linenr_T)(curwin->w_cursor.lnum - 2),
|
if (u_save((linenr_T)(curwin->w_cursor.lnum - 2),
|
||||||
(linenr_T)(curwin->w_cursor.lnum + 1)) == FAIL)
|
(linenr_T)(curwin->w_cursor.lnum + 1)) == FAIL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
--Insstart_orig.lnum;
|
--Insstart.lnum;
|
||||||
Insstart_orig.col = MAXCOL;
|
Insstart.col = MAXCOL;
|
||||||
Insstart = Insstart_orig;
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* In replace mode:
|
* In replace mode:
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
640,
|
||||||
/**/
|
/**/
|
||||||
639,
|
639,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user