]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.359 v7.3.359
authorBram Moolenaar <Bram@vim.org>
Wed, 30 Nov 2011 13:57:31 +0000 (14:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 30 Nov 2011 13:57:31 +0000 (14:57 +0100)
Problem:    Command line completion shows dict functions.
Solution:   Skip dict functions for completion. (Yasuhiro Matsumoto)

src/eval.c
src/version.c

index 5c26248dd704cd4afd485913599172b60b1a48c9..84749563987261aa0dabf414a2edd7416ccc34d2 100644 (file)
@@ -875,7 +875,7 @@ eval_init()
 
 #ifdef EBCDIC
     /*
-     * Sort the function table, to enable binary sort.
+     * Sort the function table, to enable binary search.
      */
     sortFunctions();
 #endif
@@ -21737,6 +21737,9 @@ get_user_func_name(xp, idx)
            ++hi;
        fp = HI2UF(hi);
 
+       if (fp->uf_flags & FC_DICT)
+           return NULL; /* don't show dict functions */
+
        if (STRLEN(fp->uf_name) + 4 >= IOSIZE)
            return fp->uf_name; /* prevents overflow */
 
index fe867ba156836c69474d6ab38284e2a255da2ffa..b186a7368ff9780712732b71adf860ed12ef3612 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    359,
 /**/
     358,
 /**/