changeset 11844:42585fee5e66 v8.0.0802

patch 8.0.0802: last line of terminal window has no color commit https://github.com/vim/vim/commit/70229f951f00cdcff790f2e70b0b0a601202e9e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 29 16:01:53 2017 +0200 patch 8.0.0802: last line of terminal window has no color Problem: After a job exits the last line in the terminal window does not get color attributes. Solution: Fix off-by-one error.
author Christian Brabandt <cb@256bit.org>
date Sat, 29 Jul 2017 16:15:03 +0200
parents 94f7feb4ddcb
children 4be4a033c246
files src/terminal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -1270,7 +1270,7 @@ term_get_attr(buf_T *buf, linenr_T lnum,
     term_T *term = buf->b_term;
     sb_line_T *line;
 
-    if (lnum >= term->tl_scrollback.ga_len)
+    if (lnum > term->tl_scrollback.ga_len)
 	return 0;
     line = (sb_line_T *)term->tl_scrollback.ga_data + lnum - 1;
     if (col >= line->sb_cols)
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    802,
+/**/
     801,
 /**/
     800,