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

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

961b2e54bd
(cherry picked from commit 56472e5262)
This commit is contained in:
zeertzjq
2023-04-17 22:56:13 +08:00
committed by github-actions[bot]
parent 42199afc14
commit fc545cb008
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);