mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05: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);
|
set_nonblocking(master_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut pty = Pty { child, file: File::from(master), signals };
|
Ok(Pty { child, file: File::from(master), signals })
|
||||||
pty.on_resize(window_size);
|
|
||||||
Ok(pty)
|
|
||||||
},
|
},
|
||||||
Err(err) => Err(Error::new(
|
Err(err) => Err(Error::new(
|
||||||
err.kind(),
|
err.kind(),
|
||||||
|
|
Loading…
Reference in a new issue