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.
diff --git a/src/terminal.c b/src/terminal.c
index d02e7f1..3972bcc 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -1270,7 +1270,7 @@
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)