]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.041 v7.4.041
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Sep 2013 21:24:57 +0000 (23:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Sep 2013 21:24:57 +0000 (23:24 +0200)
Problem:    Visual selection does not remain after being copied over. (Axel
            Bender)
Solution:   Move when VIsual_active is reset. (Christian Brabandt)

src/ops.c
src/version.c

index db5a182c19673c62055f31d106b68fbf9e10b040..b1f75a1eab6c0f2bd236acdee0cac6d8c171cd78 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -3808,9 +3808,6 @@ do_put(regname, dir, count, flags)
                    FALSE /* stop after 1 paste */
 #endif
                    );
-#ifdef FEAT_VISUAL
-           VIsual_active = FALSE;
-#endif
 
            curbuf->b_op_end = curwin->w_cursor;
            /* For "CTRL-O p" in Insert mode, put cursor after last char */
@@ -3972,6 +3969,10 @@ end:
     if (regname == '=')
        vim_free(y_array);
 
+#ifdef FEAT_VISUAL
+    VIsual_active = FALSE;
+#endif
+
     /* If the cursor is past the end of the line put it at the end. */
     adjust_cursor_eol();
 }
index c7a2011c149d2aba78823854513e959a88f2e4ad..9da06c8d4fbddb8dbfe5e203437a1329d416190a 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    41,
 /**/
     40,
 /**/