diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-02-23 22:14:37 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-23 22:14:37 +0000 |
commit | 3ddb1182b7b8d376e59b444f6b3e213f0dcd3417 (patch) | |
tree | e1e3f61484c3f6ecfba2ab67fbb7c799b18b47fb | |
parent | 44e08c1cf83f5a50f8b21613551304a6651c1161 (diff) | |
download | vim-git-3ddb1182b7b8d376e59b444f6b3e213f0dcd3417.tar.gz |
patch 9.0.1349: "gr" with a count failsv9.0.1349
Problem: "gr" with a count fails.
Solution: Break out of the loop only after using the count.
-rw-r--r-- | src/edit.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c index 22f4bbe1c..a030e537a 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 diff --git a/src/version.c b/src/version.c index 023548b87..d9fb76410 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1349, +/**/ 1348, /**/ 1347, |