forked from aniani/vim
updated for version 7.3.1253
Problem: Still undo problem after using CTRL-R = setline(). (Hirohito
Higashi)
Solution: Set the ins_need_undo flag.
This commit is contained in:
@@ -8134,15 +8134,17 @@ ins_reg()
|
|||||||
# ifdef USE_IM_CONTROL
|
# ifdef USE_IM_CONTROL
|
||||||
int im_on = im_get_status();
|
int im_on = im_get_status();
|
||||||
# endif
|
# endif
|
||||||
|
/* Sync undo, so the effect of e.g., setline() can be undone. */
|
||||||
|
u_sync(TRUE);
|
||||||
|
ins_need_undo = TRUE;
|
||||||
|
|
||||||
regname = get_expr_register();
|
regname = get_expr_register();
|
||||||
# ifdef USE_IM_CONTROL
|
# ifdef USE_IM_CONTROL
|
||||||
/* Restore the Input Method. */
|
/* Restore the Input Method. */
|
||||||
if (im_on)
|
if (im_on)
|
||||||
im_set_active(TRUE);
|
im_set_active(TRUE);
|
||||||
# endif
|
# endif
|
||||||
if (regname == '=')
|
Insstart = curwin->w_cursor;
|
||||||
/* sync undo, so the effect of e.g., setline() can be undone */
|
|
||||||
u_sync(TRUE);
|
|
||||||
}
|
}
|
||||||
if (regname == NUL || !valid_yank_reg(regname, FALSE))
|
if (regname == NUL || !valid_yank_reg(regname, FALSE))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -728,6 +728,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 */
|
||||||
|
/**/
|
||||||
|
1253,
|
||||||
/**/
|
/**/
|
||||||
1252,
|
1252,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user