1
0
forked from aniani/vim

patch 7.4.1670

Problem:    Completion doesn't work well for a variable containing "#".
Solution:   Recognize the "#". (Watiko)
This commit is contained in:
Bram Moolenaar 2016-03-28 19:27:13 +02:00
parent 8b877ac38e
commit a32095fc8f
2 changed files with 8 additions and 0 deletions

View File

@ -3399,6 +3399,12 @@ set_context_for_expression(
got_eq = TRUE;
xp->xp_context = EXPAND_EXPRESSION;
}
else if (c == '#'
&& xp->xp_context == EXPAND_EXPRESSION)
{
/* Autoload function/variable contains '#'. */
break;
}
else if ((c == '<' || c == '#')
&& xp->xp_context == EXPAND_FUNCTIONS
&& vim_strchr(xp->xp_pattern, '(') == NULL)

View File

@ -748,6 +748,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1670,
/**/
1669,
/**/