mirror of
https://github.com/neovim/neovim.git
synced 2026-07-15 05:40:34 +00:00
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 commit56472e5262)
This commit is contained in:
committed by
github-actions[bot]
parent
42199afc14
commit
fc545cb008
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user