0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2017-07-29 16:01:53 +02:00
parent 1e8340bbbf
commit 70229f951f
2 changed files with 3 additions and 1 deletions

View File

@@ -1270,7 +1270,7 @@ term_get_attr(buf_T *buf, linenr_T lnum, int col)
term_T *term = buf->b_term; term_T *term = buf->b_term;
sb_line_T *line; sb_line_T *line;
if (lnum >= term->tl_scrollback.ga_len) if (lnum > term->tl_scrollback.ga_len)
return 0; return 0;
line = (sb_line_T *)term->tl_scrollback.ga_data + lnum - 1; line = (sb_line_T *)term->tl_scrollback.ga_data + lnum - 1;
if (col >= line->sb_cols) if (col >= line->sb_cols)

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
802,
/**/ /**/
801, 801,
/**/ /**/