]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.1715: terminal buffer can be 1 more than 'terminalscroll' lines v8.0.1715
authorBram Moolenaar <Bram@vim.org>
Sun, 15 Apr 2018 10:55:13 +0000 (12:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 15 Apr 2018 10:55:13 +0000 (12:55 +0200)
Problem:    Terminal buffer can be 1 more than 'terminalscroll' lines.
Solution:   Change > to >=.

src/terminal.c
src/version.c

index be594c405b06db13c042343fec3caf1b5c6a659b..93b6f9286ccc2156c75887905e6300cd6f74ab3f 100644 (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;
index 76596f2bf8031c74fcb0942132fb8b72a17743f9..6ac76faeb8c3a54b63c131f5b38c2846042bf6ec 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1715,
 /**/
     1714,
 /**/