# HG changeset patch # User Bram Moolenaar # Date 1415819346 -3600 # Node ID 81c9b19ee0fb867a8364f73bdcc865676220cb0b # Parent 6ed1fb756560e2baf41f419f5d13d4c3392cfc49 updated for version 7.4.516 Problem: Completing a function name containing a # does not work. Issue 253. Solution: Recognize the # character. (Christian Brabandt) diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -3368,11 +3368,11 @@ set_context_for_expression(xp, arg, cmdi 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 "" */ + /* Function name can start with "" and contain '#'. */ break; } else if (cmdidx != CMD_let || got_eq) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 516, +/**/ 515, /**/ 514,