1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-30 14:49:26 +03:00

termwiz: avoid emitting a resize event on a spurious sigwinch read

This commit is contained in:
Wez Furlong 2019-06-02 18:11:07 -07:00
parent d000938fef
commit ae303fea56

View File

@ -250,6 +250,7 @@ impl UnixTerminal {
let mut buf = [0u8; 64];
match self.sigwinch_pipe.read(&mut buf) {
Ok(0) => Ok(None),
Ok(_) => {
let size = self.write.get_size()?;
Ok(Some(InputEvent::Resized {