# HG changeset patch # User Christian Brabandt # Date 1523790005 -7200 # Node ID 61979a75435a0db257339b0550775fefcabd2d11 # Parent 1b856fbd511adde881912bd1fffe2708034c8fa6 patch 8.0.1715: terminal buffer can be 1 more than 'terminalscroll' lines commit https://github.com/vim/vim/commit/8c94a549051cc4d4cbb8cabd321724a85fe40c23 Author: Bram Moolenaar Date: Sun Apr 15 12:55:13 2018 +0200 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 >=. diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -2518,7 +2518,7 @@ handle_pushline(int cols, const VTermScr /* 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1715, +/**/ 1714, /**/ 1713,