mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1670
Problem: Completion doesn't work well for a variable containing "#". Solution: Recognize the "#". (Watiko)
This commit is contained in:
parent
8b877ac38e
commit
a32095fc8f
@ -3399,6 +3399,12 @@ set_context_for_expression(
|
|||||||
got_eq = TRUE;
|
got_eq = TRUE;
|
||||||
xp->xp_context = EXPAND_EXPRESSION;
|
xp->xp_context = EXPAND_EXPRESSION;
|
||||||
}
|
}
|
||||||
|
else if (c == '#'
|
||||||
|
&& xp->xp_context == EXPAND_EXPRESSION)
|
||||||
|
{
|
||||||
|
/* Autoload function/variable contains '#'. */
|
||||||
|
break;
|
||||||
|
}
|
||||||
else if ((c == '<' || 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)
|
||||||
|
@ -748,6 +748,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 */
|
||||||
|
/**/
|
||||||
|
1670,
|
||||||
/**/
|
/**/
|
||||||
1669,
|
1669,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user