summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorKota Kato <github@kat0h.com>2023-01-18 15:27:38 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-18 15:27:38 +0000
commit90c2353365c5da40dec01b09e1f482983cf7f55d (patch)
treea47d5f873b94349f6a11669d744957847be8dfd6 /src/evalfunc.c
parent486fc25a295464d107264b63997bdbe3745e3c71 (diff)
patch 9.0.1218: completion includes functions that don't workv9.0.1218
Problem: Completion includes functions that don't work. Solution: Skip functions that are not implemented. (Kota Kato, closes #11845)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 923a75024a..5b25e97cbe 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -2872,6 +2872,10 @@ get_function_name(expand_T *xp, int idx)
}
if (++intidx < (int)ARRAY_LENGTH(global_functions))
{
+ // Skip if the function doesn't have an implementation (feature not
+ // implemented).
+ if (global_functions[intidx].f_func == NULL)
+ return (char_u *)"";
STRCPY(IObuff, global_functions[intidx].f_name);
STRCAT(IObuff, "(");
if (global_functions[intidx].f_max_argc == 0)