diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-13 17:48:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-13 17:48:25 +0200 |
commit | 069f90852f1444cac50491c10dfbd339a3f9e0c8 (patch) | |
tree | 6ccd8a87c04f29344cca6f1f8eda6f07a4c48cd6 /src/evalfunc.c | |
parent | 92f05f21afdb8a43581554a252cb2fc050f9e03b (diff) |
patch 8.2.3337: completing "call g:" returns entries with just "g:"v8.2.3337
Problem: Completing "call g:" returns entries with just "g:". (Naohiro Ono)
Solution: Skip empty strings returned by get_user_func_name(). (closes #8753)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index b90c6d760d..2b50798f4f 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2304,7 +2304,7 @@ get_function_name(expand_T *xp, int idx) if (intidx < 0) { name = get_user_func_name(xp, idx); - if (name != NULL) + if (name != NULL && *name != NUL) { if (*name != '<' && STRNCMP("g:", xp->xp_pattern, 2) == 0) return cat_prefix_varname('g', name); |