Skip to content

Commit 70229f9

Browse files
committed
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.
1 parent 1e8340b commit 70229f9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/terminal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ term_get_attr(buf_T *buf, linenr_T lnum, int col)
12701270
term_T *term = buf->b_term;
12711271
sb_line_T *line;
12721272

1273-
if (lnum >= term->tl_scrollback.ga_len)
1273+
if (lnum > term->tl_scrollback.ga_len)
12741274
return 0;
12751275
line = (sb_line_T *)term->tl_scrollback.ga_data + lnum - 1;
12761276
if (col >= line->sb_cols)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
802,
772774
/**/
773775
801,
774776
/**/

0 commit comments

Comments
 (0)