From 3ddb1182b7b8d376e59b444f6b3e213f0dcd3417 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 23 Feb 2023 22:14:37 +0000 Subject: 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. --- src/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/edit.c') diff --git a/src/edit.c b/src/edit.c index 22f4bbe1ca..a030e537a6 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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 -- cgit v1.2.3