mirror of
https://github.com/alacritty/alacritty.git
synced 2025-06-30 19:22:55 -04: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:
parent
63bcc1ea88
commit
117719b321
1 changed files with 1 additions and 3 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue