Skip to content

Commit

Permalink
patch 8.2.4910: imperfect coding
Browse files Browse the repository at this point in the history
Problem:    Imperfect coding.
Solution:   Make code nicer.
  • Loading branch information
brammool committed May 7, 2022
1 parent ac4174e commit 9ff7d71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ex_getln.c
Expand Up @@ -4130,15 +4130,15 @@ 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;

set_expand_context(p->xpc);

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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4910,
/**/
4909,
/**/
Expand Down

0 comments on commit 9ff7d71

Please sign in to comment.