mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
updated for version 7.4.516
Problem: Completing a function name containing a # does not work. Issue 253. Solution: Recognize the # character. (Christian Brabandt)
This commit is contained in:
parent
54fb438134
commit
8a349ff944
@ -3368,11 +3368,11 @@ set_context_for_expression(xp, arg, cmdidx)
|
||||
got_eq = TRUE;
|
||||
xp->xp_context = EXPAND_EXPRESSION;
|
||||
}
|
||||
else if (c == '<'
|
||||
else if ((c == '<' || c == '#')
|
||||
&& xp->xp_context == EXPAND_FUNCTIONS
|
||||
&& vim_strchr(xp->xp_pattern, '(') == NULL)
|
||||
{
|
||||
/* Function name can start with "<SNR>" */
|
||||
/* Function name can start with "<SNR>" and contain '#'. */
|
||||
break;
|
||||
}
|
||||
else if (cmdidx != CMD_let || got_eq)
|
||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
516,
|
||||
/**/
|
||||
515,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user