Patch 8.0.0801
Problem:    The terminal window title sometimes still says "running" even
            though the job has finished.
Solution:   Also consider the job finished when the channel has been closed.
Files:      src/terminal.c


*** ../vim-8.0.0800/src/terminal.c      2017-07-29 14:52:38.010950329 +0200
--- src/terminal.c      2017-07-29 15:51:40.522046793 +0200
***************
*** 491,497 ****
      static int
  term_job_running(term_T *term)
  {
!     return term->tl_job != NULL && term->tl_job->jv_status == JOB_STARTED;
  }
  
  /*
--- 491,501 ----
      static int
  term_job_running(term_T *term)
  {
!     /* Also consider the job finished when the channel is closed, to avoid a
!      * race condition when updating the title. */
!     return term->tl_job != NULL
!       && term->tl_job->jv_status == JOB_STARTED
!       && channel_is_open(term->tl_job->jv_channel);
  }
  
  /*
*** ../vim-8.0.0800/src/version.c       2017-07-29 14:52:38.014950302 +0200
--- src/version.c       2017-07-29 15:52:59.825488731 +0200
***************
*** 771,772 ****
--- 771,774 ----
  {   /* Add new patch number below this line */
+ /**/
+     801,
  /**/

-- 
If I tell you "you have a beautiful body", would you hold it against me?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui