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:
parent
d000938fef
commit
ae303fea56
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user