fix(completion): don't include <Lua function> in -complete= (#30209)

This commit is contained in:
zeertzjq
2024-09-01 07:57:09 +08:00
committed by GitHub
parent f046c3eca6
commit bfa365a872
2 changed files with 8 additions and 2 deletions

View File

@@ -415,7 +415,7 @@ char *get_user_cmd_complete(expand_T *xp, int idx)
return NULL;
}
char *cmd_compl = get_command_complete(idx);
if (cmd_compl == NULL) {
if (cmd_compl == NULL || idx == EXPAND_USER_LUA) {
return "";
}
return cmd_compl;