billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=b4c91eee470e7b25a1e262be78c87400f7597c2a

commit b4c91eee470e7b25a1e262be78c87400f7597c2a
Author: Boris Faure <bill...@gmail.com>
Date:   Sat Aug 8 16:40:05 2015 +0200

    fix scroll after resize
---
 src/bin/termpty.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 1845172..1ed4cff 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -781,6 +781,10 @@ termpty_backscroll_adjust(Termpty *ty, int *scroll)
         Termsave *ts;
 
         ts = BACKLOG_ROW_GET(ty, backlog_y);
+        if (*scroll <= screen_y)
+          {
+             return;
+          }
         if (!ts->cells || backlog_y >= (int)ty->backsize)
           {
              *scroll = ty->backlog_beacon.screen_y;
@@ -1036,8 +1040,8 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
 
    termpty_backlog_unlock();
 
-   ty->backlog_beacon.backlog_y = 0;
-   ty->backlog_beacon.screen_y = 0;
+   ty->backlog_beacon.backlog_y = 1;
+   ty->backlog_beacon.screen_y = 1;
 
    return;
 

-- 


Reply via email to