0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 9.0.1166: code is indented more than necessary

Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes #11792)
This commit is contained in:
Yegappan Lakshmanan
2023-01-09 19:04:23 +00:00
committed by Bram Moolenaar
parent 765d82a657
commit 1cfb14aa97
22 changed files with 929 additions and 903 deletions

View File

@@ -4146,16 +4146,16 @@ get_cmdline_completion(void)
return NULL;
p = get_ccline_ptr();
if (p != NULL && p->xpc != NULL)
{
char_u *cmd_compl;
if (p == NULL || p->xpc == NULL)
return NULL;
set_expand_context(p->xpc);
char_u *cmd_compl;
cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context);
if (cmd_compl != NULL)
return vim_strsave(cmd_compl);
}
set_expand_context(p->xpc);
cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context);
if (cmd_compl != NULL)
return vim_strsave(cmd_compl);
return NULL;
}