0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2023-02-23 22:14:37 +00:00
parent 44e08c1cf8
commit 3ddb1182b7
2 changed files with 3 additions and 1 deletions

View File

@@ -589,7 +589,7 @@ edit(
if (cmdchar == K_PS) if (cmdchar == K_PS)
// Got here from normal mode when bracketed paste started. // Got here from normal mode when bracketed paste started.
c = K_PS; 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 c = ESC; // in case the stuffed Esc was consumed already
else else
do do

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1349,
/**/ /**/
1348, 1348,
/**/ /**/