fix: make sure to reset in_band_resize on exit if it was enabled
This commit is contained in:
parent
476baf768e
commit
3816ec2327
1 changed files with 5 additions and 1 deletions
|
@ -496,7 +496,11 @@ const Loop = struct {
|
||||||
need_read = true;
|
need_read = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (result.event) |event| self.postEvent(event);
|
if (result.event) |event| {
|
||||||
|
if (event == .winsize)
|
||||||
|
self.vaxis.state.in_band_resize = true;
|
||||||
|
self.postEvent(event);
|
||||||
|
}
|
||||||
if (result.n < n) {
|
if (result.n < n) {
|
||||||
const buf_move = try a.alloc(u8, buf.len);
|
const buf_move = try a.alloc(u8, buf.len);
|
||||||
@memcpy(buf_move[0 .. n - result.n], buf[result.n..n]);
|
@memcpy(buf_move[0 .. n - result.n], buf[result.n..n]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue