From 0c45a9edba233968d91bfe5648b4664722442d9a Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 8 Feb 2024 15:32:55 +0400 Subject: 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. --- alacritty_terminal/src/tty/unix.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs index 2b4f8e54..2c06d54f 100644 --- a/alacritty_terminal/src/tty/unix.rs +++ b/alacritty_terminal/src/tty/unix.rs @@ -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(), -- cgit v1.2.3-54-g00ecf