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

patch 8.0.1484: reduntant conditions

Problem:    Reduntant conditions.
Solution:   Remove them. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar 2018-02-09 16:46:00 +01:00
parent 9d32276b52
commit a15ef4588c
2 changed files with 4 additions and 3 deletions

View File

@ -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;
@ -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

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1484,
/**/
1483,
/**/