vim-patch:7.4.516

Problem:    Completing a function name containing a # does not work.  Issue
	    253.
Solution:   Recognize the # character. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-516
This commit is contained in:
Florian Walch
2014-12-23 21:41:30 +01:00
parent 5e542ba56e
commit 3286176406
2 changed files with 3 additions and 3 deletions

View File

@@ -2580,10 +2580,10 @@ void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx)
} else if (c == '=') {
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) {
if (c == '"') { /* string */

View File

@@ -222,7 +222,7 @@ static int included_patches[] = {
//519,
//518,
//517,
//516,
516,
//515,
//514,
513,