1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Remove extra TIOCSWINSZ ioctl on startup

The openpty call already performs it, thus no need to call it one more
with the exact same size since it confuses some applications.
This commit is contained in:
Kirill Chibisov 2024-02-08 15:32:55 +04:00 committed by GitHub
parent 63bcc1ea88
commit 117719b321
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -280,9 +280,7 @@ pub fn new(config: &Options, window_size: WindowSize, window_id: u64) -> Result<
set_nonblocking(master_fd);
}
let mut pty = Pty { child, file: File::from(master), signals };
pty.on_resize(window_size);
Ok(pty)
Ok(Pty { child, file: File::from(master), signals })
},
Err(err) => Err(Error::new(
err.kind(),