1. Richo Healey
  2. vim

Commits

Bram Moolenaar  committed 0a650db

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)

  • Participants
  • Parent commits 73c9479
  • Branches default
  • Tags v7-3-241

Comments (0)

Files changed (2)

File src/ex_getln.c

View file
  • Ignore whitespace
 	    int	    len;
 
 	    /* 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
 		if (has_mbyte)
 		    --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)
 		p += len;
 	}

File src/version.c

View file
  • Ignore whitespace
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    241,
+/**/
     240,
 /**/
     239,