mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
vim-patch:7.4.516
Problem: Completing a function name containing a # does not work. Issue 253. Solution: Recognize the # character. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=v7-4-516
This commit is contained in:
@@ -2580,10 +2580,10 @@ void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx)
|
|||||||
} else if (c == '=') {
|
} else if (c == '=') {
|
||||||
got_eq = TRUE;
|
got_eq = TRUE;
|
||||||
xp->xp_context = EXPAND_EXPRESSION;
|
xp->xp_context = EXPAND_EXPRESSION;
|
||||||
} else if (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) {
|
||||||
/* Function name can start with "<SNR>" */
|
/* Function name can start with "<SNR>" and contain '#'. */
|
||||||
break;
|
break;
|
||||||
} else if (cmdidx != CMD_let || got_eq) {
|
} else if (cmdidx != CMD_let || got_eq) {
|
||||||
if (c == '"') { /* string */
|
if (c == '"') { /* string */
|
||||||
|
@@ -222,7 +222,7 @@ static int included_patches[] = {
|
|||||||
//519,
|
//519,
|
||||||
//518,
|
//518,
|
||||||
//517,
|
//517,
|
||||||
//516,
|
516,
|
||||||
//515,
|
//515,
|
||||||
//514,
|
//514,
|
||||||
513,
|
513,
|
||||||
|
Reference in New Issue
Block a user