mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -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:
@@ -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)
|
||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
802,
|
||||
/**/
|
||||
801,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user