mirror of
https://github.com/zoriya/vim.git
synced 2025-12-19 05:35:17 +00:00
patch 7.4.1670
Problem: Completion doesn't work well for a variable containing "#". Solution: Recognize the "#". (Watiko)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user