diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2024-02-08 15:32:55 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 15:32:55 +0400 |
commit | 117719b3216d60ddde4096d9b2bdccecfd214c42 (patch) | |
tree | e34e6efc5d8672506406792dfc3dd2ad9c253e5d /alacritty_terminal/src/tty/unix.rs | |
parent | 63bcc1ea88cdaa4e0f3650f4478fb28d0cf8322e (diff) | |
download | alacritty-117719b3216d60ddde4096d9b2bdccecfd214c42.tar.gz alacritty-117719b3216d60ddde4096d9b2bdccecfd214c42.zip |
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.
Diffstat (limited to 'alacritty_terminal/src/tty/unix.rs')
-rw-r--r-- | alacritty_terminal/src/tty/unix.rs | 4 |
1 files changed, 1 insertions, 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(), |