Skip to content

Commit 8c94a54

Browse files
committed
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 >=.
1 parent 6e72cd0 commit 8c94a54

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: src/terminal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ handle_pushline(int cols, const VTermScreenCell *cells, void *user)
25182518

25192519
/* If the number of lines that are stored goes over 'termscrollback' then
25202520
* delete the first 10%. */
2521-
if (term->tl_scrollback.ga_len > p_tlsl)
2521+
if (term->tl_scrollback.ga_len >= p_tlsl)
25222522
{
25232523
int todo = p_tlsl / 10;
25242524
int i;

Diff for: src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ static char *(features[]) =
762762

763763
static int included_patches[] =
764764
{ /* Add new patch number below this line */
765+
/**/
766+
1715,
765767
/**/
766768
1714,
767769
/**/

0 commit comments

Comments
 (0)