diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2024-02-08 15:32:55 +0400 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-03-19 02:20:53 +0100 |
commit | 0c45a9edba233968d91bfe5648b4664722442d9a (patch) | |
tree | 6e240d105282da3642340b4cd015e7f97d3f17d5 | |
parent | 4e052be4a40ff35aaca76a1eb8e0e62bcfebbd81 (diff) | |
download | alacritty-0c45a9edba233968d91bfe5648b4664722442d9a.tar.gz alacritty-0c45a9edba233968d91bfe5648b4664722442d9a.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.
-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(), |