patch 7.4.2096
Problem: Lambda functions show up with completion.
Solution: Don't show lambda functions. (Ken Takata)
diff --git a/src/userfunc.c b/src/userfunc.c
index af1863f..32bccee 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -2554,8 +2554,9 @@
++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 */