mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.4910: imperfect coding
Problem: Imperfect coding. Solution: Make code nicer.
This commit is contained in:
parent
ac4174e166
commit
9ff7d717aa
@ -4130,7 +4130,7 @@ get_cmdline_completion(void)
|
||||
return NULL;
|
||||
|
||||
p = get_ccline_ptr();
|
||||
if (p && p->xpc != NULL)
|
||||
if (p != NULL && p->xpc != NULL)
|
||||
{
|
||||
char_u *cmd_compl;
|
||||
|
||||
@ -4138,7 +4138,7 @@ get_cmdline_completion(void)
|
||||
|
||||
cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context);
|
||||
if (cmd_compl != NULL)
|
||||
return vim_strnsave(cmd_compl, strlen((char *)cmd_compl));
|
||||
return vim_strsave(cmd_compl);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4910,
|
||||
/**/
|
||||
4909,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user