Permalink
Browse files

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.
  • Loading branch information...
brammool committed Jul 29, 2017
1 parent 1e8340b commit 70229f951f00cdcff790f2e70b0b0a601202e9e7
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/terminal.c
  2. +2 −0 src/version.c
View
@@ -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)
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
802,
/**/
801,
/**/

0 comments on commit 70229f9

Please sign in to comment.