forked from aniani/vim
patch 8.2.3337: completing "call g:" returns entries with just "g:"
Problem: Completing "call g:" returns entries with just "g:". (Naohiro Ono) Solution: Skip empty strings returned by get_user_func_name(). (closes #8753)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user