]> granicus.if.org Git - vim/commitdiff
patch 7.4.1670 v7.4.1670
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Mar 2016 17:27:13 +0000 (19:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Mar 2016 17:27:13 +0000 (19:27 +0200)
Problem:    Completion doesn't work well for a variable containing "#".
Solution:   Recognize the "#". (Watiko)

src/eval.c
src/version.c

index ea7f9090aae794c83d400c5ac9a294216d2858da..2c093d4154e630f89abaa28aff258aef571f4e9c 100644 (file)
@@ -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)
index 826ee1debe3413e86b59f93d0d57d1664ba03b6d..7039002fc5c4550d3de40916870d8b5cc010105a 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1670,
 /**/
     1669,
 /**/