aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-01-04 23:37:48 +0100
committerBoris Faure <billiob@gmail.com>2019-01-04 23:37:48 +0100
commit8841e5259a22b247f00ac568663472c819f75f5c (patch)
treeaaf4b3dbf6e2dbb20c79cb3fbd03d8583a234e29
parenttermio: allow 1 line or 1 column windows. Closes T7532 (diff)
parenttermpty: reset circular_offset2 (for the 2nd buffer) to 0 (as it's cleared) (diff)
downloadterminology-8841e5259a22b247f00ac568663472c819f75f5c.tar.gz
Merge branch 'terminology-1.3'
-rw-r--r--src/bin/termpty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 44988a6..7ef9758 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -1454,6 +1454,7 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
ty->cursor_state.cy = (new_si.cy >= 0) ? new_si.cy : 0;
ty->cursor_state.cx = (new_si.cx >= 0) ? new_si.cx : 0;
ty->circular_offset = new_si.circular_offset;
+ ty->circular_offset2 = 0;
ty->w = new_w;
ty->h = new_h;