mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-patch:7.4.2096
Problem: Lambda functions show up with completion.
Solution: Don't show lambda functions. (Ken Takata)
b49edc11a1
This commit is contained in:
@@ -21839,8 +21839,10 @@ char_u *get_user_func_name(expand_T *xp, int idx)
|
||||
++hi;
|
||||
fp = HI2UF(hi);
|
||||
|
||||
if (fp->uf_flags & FC_DICT)
|
||||
return (char_u *)""; /* don't show dict functions */
|
||||
if ((fp->uf_flags & FC_DICT)
|
||||
|| STRNCMP(fp->uf_name, "<lambda>", 8) == 0) {
|
||||
return (char_u *)""; // don't show dict and lambda functions
|
||||
}
|
||||
|
||||
if (STRLEN(fp->uf_name) + 4 >= IOSIZE)
|
||||
return fp->uf_name; /* prevents overflow */
|
||||
|
Reference in New Issue
Block a user