0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.0.0797: finished job in terminal window is not handled

Problem:    Finished job in terminal window is not handled.
Solution:   Add the scrollback buffer.  Use it to fill the buffer when the job
            has ended.
This commit is contained in:
Bram Moolenaar
2017-07-28 21:51:57 +02:00
parent d973bcb483
commit d85f271bf8
7 changed files with 281 additions and 80 deletions

View File

@@ -1200,11 +1200,10 @@ win_update(win_T *wp)
#endif
#ifdef FEAT_TERMINAL
if (wp->w_buffer->b_term != NULL)
/* If this window contains a terminal, redraw works completely differently.
*/
if (term_update_window(wp) == OK)
{
/* This window contains a terminal, redraw works completely
* differently. */
term_update_window(wp);
wp->w_redr_type = 0;
return;
}
@@ -6849,14 +6848,14 @@ win_redr_status(win_T *wp)
p = NameBuff;
len = (int)STRLEN(p);
if (wp->w_buffer->b_help
if (bt_help(wp->w_buffer)
#ifdef FEAT_QUICKFIX
|| wp->w_p_pvw
#endif
|| bufIsChanged(wp->w_buffer)
|| wp->w_buffer->b_p_ro)
*(p + len++) = ' ';
if (wp->w_buffer->b_help)
if (bt_help(wp->w_buffer))
{
STRCPY(p + len, _("[Help]"));
len += (int)STRLEN(p + len);