From: Bram Moolenaar Date: Wed, 30 Nov 2011 13:57:31 +0000 (+0100) Subject: updated for version 7.3.359 X-Git-Tag: v7.3.359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=195ea0ff6cbb15e5e18dcade13b612ddd7e9d68e;p=vim updated for version 7.3.359 Problem: Command line completion shows dict functions. Solution: Skip dict functions for completion. (Yasuhiro Matsumoto) --- diff --git a/src/eval.c b/src/eval.c index 5c26248dd..847495639 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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 */ diff --git a/src/version.c b/src/version.c index fe867ba15..b186a7368 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 359, /**/ 358, /**/