Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch 8.0.1715: terminal buffer can be 1 more than 'terminalscroll' l…
…ines

Problem:    Terminal buffer can be 1 more than 'terminalscroll' lines.
Solution:   Change > to >=.
  • Loading branch information
brammool committed Apr 15, 2018
1 parent 6e72cd0 commit 8c94a54
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
Expand Up @@ -2518,7 +2518,7 @@ handle_pushline(int cols, const VTermScreenCell *cells, void *user)

/* If the number of lines that are stored goes over 'termscrollback' then
* delete the first 10%. */
if (term->tl_scrollback.ga_len > p_tlsl)
if (term->tl_scrollback.ga_len >= p_tlsl)
{
int todo = p_tlsl / 10;
int i;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

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

0 comments on commit 8c94a54

Please sign in to comment.