]> granicus.if.org Git - vim/commitdiff
patch 8.0.0802: last line of terminal window has no color v8.0.0802
authorBram Moolenaar <Bram@vim.org>
Sat, 29 Jul 2017 14:01:53 +0000 (16:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 29 Jul 2017 14:01:53 +0000 (16:01 +0200)
Problem:    After a job exits the last line in the terminal window does not
            get color attributes.
Solution:   Fix off-by-one error.

src/terminal.c
src/version.c

index d02e7f12c4bb649ee4697f0a581440de7f2d2f16..3972bcc833c4985d1ec919f5dda41f72a083a0fc 100644 (file)
@@ -1270,7 +1270,7 @@ term_get_attr(buf_T *buf, linenr_T lnum, int col)
     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)
index 4c2a48ad374c01773c803496537df7186f9d0cfb..44ae124a4fb417c1d0de950dadeac820d9017b4c 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    802,
 /**/
     801,
 /**/