diff src/screen.c @ 11834:0cfe4a07c2ad v8.0.0797

patch 8.0.0797: finished job in terminal window is not handled commit https://github.com/vim/vim/commit/d85f271bf8516dbd90be4d18f905f0abbfcd6db6 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 28 21:51:57 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Fri, 28 Jul 2017 22:00:04 +0200
parents 4f59d2a66bf7
children f080b225a2a4
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -1200,11 +1200,10 @@ win_update(win_T *wp)
 #endif
 
 #ifdef FEAT_TERMINAL
-    if (wp->w_buffer->b_term != NULL)
-    {
-	/* This window contains a terminal, redraw works completely
-	 * differently. */
-	term_update_window(wp);
+    /* If this window contains a terminal, redraw works completely differently.
+     */
+    if (term_update_window(wp) == OK)
+    {
 	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);