mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
vim-patch:8.2.3360: user function completion fails with dict function
Problem: User function completion fails with dict function.
Solution: Do not stop sequencing through the list if user functions when
encountering an empty name. (Naohiro Ono, closes vim/vim#8765,
closes vim/vim#8774)
5aec755b67
This commit is contained in:
@@ -119,8 +119,9 @@ char_u *get_function_name(expand_T *xp, int idx)
|
||||
intidx = -1;
|
||||
if (intidx < 0) {
|
||||
name = get_user_func_name(xp, idx);
|
||||
if (name != NULL && *name != NUL) {
|
||||
if (*name != '<' && STRNCMP("g:", xp->xp_pattern, 2) == 0) {
|
||||
if (name != NULL) {
|
||||
if (*name != NUL && *name != '<'
|
||||
&& STRNCMP("g:", xp->xp_pattern, 2) == 0) {
|
||||
return cat_prefix_varname('g', name);
|
||||
}
|
||||
return name;
|
||||
|
Reference in New Issue
Block a user