0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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:
Bram Moolenaar
2014-11-12 20:09:06 +01:00
parent 54fb438134
commit 8a349ff944
2 changed files with 4 additions and 2 deletions

View File

@@ -3368,11 +3368,11 @@ set_context_for_expression(xp, arg, cmdidx)
got_eq = TRUE; got_eq = TRUE;
xp->xp_context = EXPAND_EXPRESSION; xp->xp_context = EXPAND_EXPRESSION;
} }
else if (c == '<' else if ((c == '<' || c == '#')
&& xp->xp_context == EXPAND_FUNCTIONS && xp->xp_context == EXPAND_FUNCTIONS
&& vim_strchr(xp->xp_pattern, '(') == NULL) && vim_strchr(xp->xp_pattern, '(') == NULL)
{ {
/* Function name can start with "<SNR>" */ /* Function name can start with "<SNR>" and contain '#'. */
break; break;
} }
else if (cmdidx != CMD_let || got_eq) else if (cmdidx != CMD_let || got_eq)

View File

@@ -741,6 +741,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 */
/**/
516,
/**/ /**/
515, 515,
/**/ /**/