]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1253 v7.3.1253
authorBram Moolenaar <Bram@vim.org>
Thu, 27 Jun 2013 20:21:24 +0000 (22:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 27 Jun 2013 20:21:24 +0000 (22:21 +0200)
Problem:    Still undo problem after using CTRL-R = setline(). (Hirohito
            Higashi)
Solution:   Set the ins_need_undo flag.

src/edit.c
src/version.c

index 413740f70d10acbc1dcfe4925a12d4be3f9e2946..b42b930f1b69953e4425a6fc0d04daf8dad7a100 100644 (file)
@@ -8134,15 +8134,17 @@ ins_reg()
 # ifdef USE_IM_CONTROL
        int     im_on = im_get_status();
 # endif
+       /* Sync undo, so the effect of e.g., setline() can be undone. */
+       u_sync(TRUE);
+       ins_need_undo = TRUE;
+
        regname = get_expr_register();
 # ifdef USE_IM_CONTROL
        /* Restore the Input Method. */
        if (im_on)
            im_set_active(TRUE);
 # endif
-       if (regname == '=')
-           /* sync undo, so the effect of e.g., setline() can be undone */
-           u_sync(TRUE);
+       Insstart = curwin->w_cursor;
     }
     if (regname == NUL || !valid_yank_reg(regname, FALSE))
     {
index 83487c7c63e15ac7f938a421cc681176a4584e30..dbd9542572683532528045df4eeb6335390e374e 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1253,
 /**/
     1252,
 /**/