mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-02 09:42:23 +03: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:
1 parent
63bcc1ea88
commit
117719b321
1 file changed
+1
-3
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user