termpty: reset circular_offset2 (for the 2nd buffer) to 0 (as it's cleared)

Closes T7543
This commit is contained in:
Boris Faure 2019-01-04 23:35:48 +01:00
parent 744c93a37d
commit 007dfb60e3
1 changed files with 1 additions and 0 deletions

View File

@ -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;