1
0
forked from aniani/vim

patch 8.0.1715: terminal buffer can be 1 more than 'terminalscroll' lines

Problem:    Terminal buffer can be 1 more than 'terminalscroll' lines.
Solution:   Change > to >=.
This commit is contained in:
Bram Moolenaar
2018-04-15 12:55:13 +02:00
parent 6e72cd0d72
commit 8c94a54905
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -762,6 +762,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1715,
/**/
1714,
/**/