patch 9.0.1349: "gr" with a count fails
Problem: "gr" with a count fails.
Solution: Break out of the loop only after using the count.
diff --git a/src/edit.c b/src/edit.c
index 22f4bbe..a030e53 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -589,7 +589,7 @@
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
diff --git a/src/version.c b/src/version.c
index 023548b..d9fb764 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1349,
+/**/
1348,
/**/
1347,