mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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)
This commit is contained in:
@@ -3046,7 +3046,7 @@ cmdline_paste(regname, literally, remcr)
|
|||||||
int len;
|
int len;
|
||||||
|
|
||||||
/* Locate start of last word in the cmd buffer. */
|
/* Locate start of last word in the cmd buffer. */
|
||||||
for (w = ccline.cmdbuff + ccline.cmdlen; w > ccline.cmdbuff; )
|
for (w = ccline.cmdbuff + ccline.cmdpos; w > ccline.cmdbuff; )
|
||||||
{
|
{
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
if (has_mbyte)
|
if (has_mbyte)
|
||||||
@@ -3064,7 +3064,7 @@ cmdline_paste(regname, literally, remcr)
|
|||||||
--w;
|
--w;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
len = (int)((ccline.cmdbuff + ccline.cmdlen) - w);
|
len = (int)((ccline.cmdbuff + ccline.cmdpos) - w);
|
||||||
if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
|
if (p_ic ? STRNICMP(w, arg, len) == 0 : STRNCMP(w, arg, len) == 0)
|
||||||
p += len;
|
p += len;
|
||||||
}
|
}
|
||||||
|
@@ -709,6 +709,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 */
|
||||||
|
/**/
|
||||||
|
241,
|
||||||
/**/
|
/**/
|
||||||
240,
|
240,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user