Skip to content

Commit fd92d3e

Browse files
committed
updated for version 7.3.241
Problem: Using CTRL-R CTRL-W on the command line may insert only part of the word. Solution: Use the cursor position instead of assuming it is at the end of the command. (Tyru)
1 parent a9c96dd commit fd92d3e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ex_getln.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,7 +3046,7 @@ cmdline_paste(regname, literally, remcr)
30463046
int len;
30473047

30483048
/* Locate start of last word in the cmd buffer. */
3049-
for (w = ccline.cmdbuff + ccline.cmdlen; w > ccline.cmdbuff; )
3049+
for (w = ccline.cmdbuff + ccline.cmdpos; w > ccline.cmdbuff; )
30503050
{
30513051
#ifdef FEAT_MBYTE
30523052
if (has_mbyte)
@@ -3064,7 +3064,7 @@ cmdline_paste(regname, literally, remcr)
30643064
--w;
30653065
}
30663066
}
3067-
len = (int)((ccline.cmdbuff + ccline.cmdlen) - w);
3067+
len = (int)((ccline.cmdbuff + ccline.cmdpos) - w);
30683068
if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
30693069
p += len;
30703070
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ static char *(features[]) =
709709

710710
static int included_patches[] =
711711
{ /* Add new patch number below this line */
712+
/**/
713+
241,
712714
/**/
713715
240,
714716
/**/

0 commit comments

Comments
 (0)