Skip to content

Commit

Permalink
patch 8.0.1484: reduntant conditions
Browse files Browse the repository at this point in the history
Problem:    Reduntant conditions.
Solution:   Remove them. (Dominique Pelle)
  • Loading branch information
brammool committed Feb 9, 2018
1 parent 9d32276 commit a15ef45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ ex_terminal(exarg_T *eap)
init_job_options(&opt);

cmd = eap->arg;
while (*cmd && *cmd == '+' && *(cmd + 1) == '+')
while (*cmd == '+' && *(cmd + 1) == '+')
{
char_u *p, *ep;

Expand Down Expand Up @@ -3259,8 +3259,7 @@ f_term_wait(typval_T *argvars, typval_T *rettv UNUSED)
return;

/* Get the job status, this will detect a job that finished. */
if ((buf->b_term->tl_job->jv_channel == NULL
|| !buf->b_term->tl_job->jv_channel->ch_keep_open)
if (!buf->b_term->tl_job->jv_channel->ch_keep_open
&& STRCMP(job_status(buf->b_term->tl_job), "dead") == 0)
{
/* The job is dead, keep reading channel I/O until the channel is
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ static char *(features[]) =

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

0 comments on commit a15ef45

Please sign in to comment.