diff options
| author | Bram Moolenaar <Bram@vim.org> | 2011-11-30 14:57:31 +0100 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2011-11-30 14:57:31 +0100 |
| commit | 195ea0ff6cbb15e5e18dcade13b612ddd7e9d68e (patch) | |
| tree | 87db95756f3257c1064901d7032e03c17e910e37 /src/eval.c | |
| parent | b491c03ee7757ebefc346a856daa21e34c2f576d (diff) | |
| download | vim-git-7.3.359.tar.gz | |
updated for version 7.3.359v7.3.359
Problem: Command line completion shows dict functions.
Solution: Skip dict functions for completion. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ |
