Mercurial > vim
comparison src/eval.c @ 3178:b7f0f23bf906 v7.3.359
updated for version 7.3.359
Problem: Command line completion shows dict functions.
Solution: Skip dict functions for completion. (Yasuhiro Matsumoto)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 30 Nov 2011 14:57:31 +0100 |
parents | 07956eab189c |
children | 28480c9006e6 |
comparison
equal
deleted
inserted
replaced
3177:b82c6ac2df3a | 3178:b7f0f23bf906 |
---|---|
873 } | 873 } |
874 set_vim_var_nr(VV_SEARCHFORWARD, 1L); | 874 set_vim_var_nr(VV_SEARCHFORWARD, 1L); |
875 | 875 |
876 #ifdef EBCDIC | 876 #ifdef EBCDIC |
877 /* | 877 /* |
878 * Sort the function table, to enable binary sort. | 878 * Sort the function table, to enable binary search. |
879 */ | 879 */ |
880 sortFunctions(); | 880 sortFunctions(); |
881 #endif | 881 #endif |
882 } | 882 } |
883 | 883 |
21735 ++hi; | 21735 ++hi; |
21736 while (HASHITEM_EMPTY(hi)) | 21736 while (HASHITEM_EMPTY(hi)) |
21737 ++hi; | 21737 ++hi; |
21738 fp = HI2UF(hi); | 21738 fp = HI2UF(hi); |
21739 | 21739 |
21740 if (fp->uf_flags & FC_DICT) | |
21741 return NULL; /* don't show dict functions */ | |
21742 | |
21740 if (STRLEN(fp->uf_name) + 4 >= IOSIZE) | 21743 if (STRLEN(fp->uf_name) + 4 >= IOSIZE) |
21741 return fp->uf_name; /* prevents overflow */ | 21744 return fp->uf_name; /* prevents overflow */ |
21742 | 21745 |
21743 cat_func_name(IObuff, fp); | 21746 cat_func_name(IObuff, fp); |
21744 if (xp->xp_context != EXPAND_USER_FUNC) | 21747 if (xp->xp_context != EXPAND_USER_FUNC) |