diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-07-29 16:01:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-07-29 16:01:53 +0200 |
commit | 70229f951f00cdcff790f2e70b0b0a601202e9e7 (patch) | |
tree | d2565e8cbb1f5cbb2ae7965552b5cdcc005439cd | |
parent | 1e8340bbbfb26d170a3f8b135dcb874e90a74e0b (diff) |
patch 8.0.0802: last line of terminal window has no colorv8.0.0802
Problem: After a job exits the last line in the terminal window does not
get color attributes.
Solution: Fix off-by-one error.
-rw-r--r-- | src/terminal.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index d02e7f12c4..3972bcc833 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -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) diff --git a/src/version.c b/src/version.c index 4c2a48ad37..44ae124a4f 100644 --- 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, |