Skip to content

Commit a15ef45

Browse files
committed
patch 8.0.1484: reduntant conditions
Problem: Reduntant conditions. Solution: Remove them. (Dominique Pelle)
1 parent 9d32276 commit a15ef45

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/terminal.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ ex_terminal(exarg_T *eap)
523523
init_job_options(&opt);
524524

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

@@ -3259,8 +3259,7 @@ f_term_wait(typval_T *argvars, typval_T *rettv UNUSED)
32593259
return;
32603260

32613261
/* Get the job status, this will detect a job that finished. */
3262-
if ((buf->b_term->tl_job->jv_channel == NULL
3263-
|| !buf->b_term->tl_job->jv_channel->ch_keep_open)
3262+
if (!buf->b_term->tl_job->jv_channel->ch_keep_open
32643263
&& STRCMP(job_status(buf->b_term->tl_job), "dead") == 0)
32653264
{
32663265
/* The job is dead, keep reading channel I/O until the channel is

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1484,
774776
/**/
775777
1483,
776778
/**/

0 commit comments

Comments
 (0)