Problem: Command line completion does not work.
Solution: Move setting xp_line down. (Daniel Thau)
int old_char = NUL;
char_u *nextcomm;
- /* Store the string here so that call_user_expand_func() can get to them
- * easily. */
- xp->xp_line = str;
- xp->xp_col = col;
-
/*
* Avoid a UMR warning from Purify, only save the character if it has been
* written before.
while (nextcomm != NULL)
nextcomm = set_one_cmd_context(xp, nextcomm);
+ /* Store the string here so that call_user_expand_func() can get to them
+ * easily. */
+ xp->xp_line = str;
+ xp->xp_col = col;
+
str[col] = old_char;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1271,
/**/
1270,
/**/