Skip to content

Commit

Permalink
patch 8.0.0802: last line of terminal window has no color
Browse files Browse the repository at this point in the history
Problem:    After a job exits the last line in the terminal window does not
            get color attributes.
Solution:   Fix off-by-one error.
  • Loading branch information
brammool committed Jul 29, 2017
1 parent 1e8340b commit 70229f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
802,
/**/
801,
/**/
Expand Down

0 comments on commit 70229f9

Please sign in to comment.