diff options
Diffstat (limited to 'src/nvim/eval.c')
| -rw-r--r-- | src/nvim/eval.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/nvim/eval.c b/src/nvim/eval.c index ffae24a380..116944b28d 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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 */ | 
