]> granicus.if.org Git - vim/commitdiff
patch 9.0.1349: "gr" with a count fails v9.0.1349
authorBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2023 22:14:37 +0000 (22:14 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2023 22:14:37 +0000 (22:14 +0000)
Problem:    "gr" with a count fails.
Solution:   Break out of the loop only after using the count.

src/edit.c
src/version.c

index 22f4bbe1ca68f8af5ecafe880434d8e0a712ef25..a030e537a6a47333c28dc4089941cfe058986d2a 100644 (file)
@@ -589,7 +589,7 @@ edit(
        if (cmdchar == K_PS)
            // Got here from normal mode when bracketed paste started.
            c = K_PS;
-       else if (cmdchar == 'v' && did_loop)
+       else if (cmdchar == 'v' && did_loop && count <= 0)
            c = ESC;  // in case the stuffed Esc was consumed already
        else
            do
index 023548b872d345eb6b4b58a5ce617c1ed89cc153..d9fb764101a683073a403e72f126e20155cde304 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1349,
 /**/
     1348,
 /**/