aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-01-04 23:35:48 +0100
committerBoris Faure <billiob@gmail.com>2019-01-04 23:35:48 +0100
commit007dfb60e37c1718b822aeee86d6a16fb46873aa (patch)
treeac185bb43ff81c8af79af27f249aa2bec1e91763
parenttermio: fix potential segv. CID1397077 (diff)
downloadterminology-007dfb60e37c1718b822aeee86d6a16fb46873aa.tar.gz
termpty: reset circular_offset2 (for the 2nd buffer) to 0 (as it's cleared)
-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 befdbf4..c596379 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -1446,6 +1446,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;