diff src/eval.c @ 6367:81c9b19ee0fb v7.4.516

updated for version 7.4.516 Problem: Completing a function name containing a # does not work. Issue 253. Solution: Recognize the # character. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Nov 2014 20:09:06 +0100
parents 6ad9facba57d
children 870480df8275
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -3368,11 +3368,11 @@ set_context_for_expression(xp, arg, cmdi
 	    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)