mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +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 == '=') {
|
||||
got_eq = TRUE;
|
||||
xp->xp_context = EXPAND_EXPRESSION;
|
||||
} else if (c == '<'
|
||||
} else if ((c == '<' || c == '#')
|
||||
&& xp->xp_context == EXPAND_FUNCTIONS
|
||||
&& vim_strchr(xp->xp_pattern, '(') == NULL) {
|
||||
/* Function name can start with "<SNR>" */
|
||||
/* Function name can start with "<SNR>" and contain '#'. */
|
||||
break;
|
||||
} else if (cmdidx != CMD_let || got_eq) {
|
||||
if (c == '"') { /* string */
|
||||
|
Reference in New Issue
Block a user