Skip to content

Commit 064fca7

Browse files
committed
updated for version 7.4.516
Problem: Completing a function name containing a # does not work. Issue 253. Solution: Recognize the # character. (Christian Brabandt)
1 parent ceb54e5 commit 064fca7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/eval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3368,11 +3368,11 @@ set_context_for_expression(xp, arg, cmdidx)
33683368
got_eq = TRUE;
33693369
xp->xp_context = EXPAND_EXPRESSION;
33703370
}
3371-
else if (c == '<'
3371+
else if ((c == '<' || c == '#')
33723372
&& xp->xp_context == EXPAND_FUNCTIONS
33733373
&& vim_strchr(xp->xp_pattern, '(') == NULL)
33743374
{
3375-
/* Function name can start with "<SNR>" */
3375+
/* Function name can start with "<SNR>" and contain '#'. */
33763376
break;
33773377
}
33783378
else if (cmdidx != CMD_let || got_eq)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
516,
744746
/**/
745747
515,
746748
/**/

0 commit comments

Comments
 (0)