vim-patch:9.0.1460: insufficient testing for getcmdcompltype() (#23159)

Problem:    Insufficient testing for getcmdcompltype().
Solution:   Add a few more test cases. (closes vim/vim#12268)

961b2e54bd
This commit is contained in:
zeertzjq
2023-04-17 23:27:04 +08:00
committed by GitHub
parent 07b60efd80
commit 9e5f9c25d9
2 changed files with 18 additions and 7 deletions

View File

@@ -4096,6 +4096,10 @@ static char *get_cmdline_completion(void)
}
set_expand_context(p->xpc);
if (p->xpc->xp_context == EXPAND_UNSUCCESSFUL) {
return NULL;
}
char *cmd_compl = get_user_cmd_complete(p->xpc, p->xpc->xp_context);
if (cmd_compl != NULL) {
return xstrdup(cmd_compl);