summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/termpty.c8
1 files 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)
781 Termsave *ts; 781 Termsave *ts;
782 782
783 ts = BACKLOG_ROW_GET(ty, backlog_y); 783 ts = BACKLOG_ROW_GET(ty, backlog_y);
784 if (*scroll <= screen_y)
785 {
786 return;
787 }
784 if (!ts->cells || backlog_y >= (int)ty->backsize) 788 if (!ts->cells || backlog_y >= (int)ty->backsize)
785 { 789 {
786 *scroll = ty->backlog_beacon.screen_y; 790 *scroll = ty->backlog_beacon.screen_y;
@@ -1036,8 +1040,8 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
1036 1040
1037 termpty_backlog_unlock(); 1041 termpty_backlog_unlock();
1038 1042
1039 ty->backlog_beacon.backlog_y = 0; 1043 ty->backlog_beacon.backlog_y = 1;
1040 ty->backlog_beacon.screen_y = 0; 1044 ty->backlog_beacon.screen_y = 1;
1041 1045
1042 return; 1046 return;
1043 1047