Upgrade Alacritty to respect ~/.hushlogin (#25224)

Closes #4827

Release Notes:

- Fixed a bug where shells spawned by the Zed terminal would not hide
the login message when `~/.hushlogin` exists
This commit is contained in:
Mikayla Maki 2025-02-19 20:55:11 -08:00 committed by GitHub
parent d0f7dede79
commit 0c0201c79f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 21 deletions

View file

@ -184,10 +184,10 @@ impl TerminalOutput {
for byte in text.as_bytes() {
if *byte == b'\n' {
// Dirty (?) hack to move the cursor down
self.parser.advance(&mut self.handler, b'\r');
self.parser.advance(&mut self.handler, b'\n');
self.parser.advance(&mut self.handler, &[b'\r']);
self.parser.advance(&mut self.handler, &[b'\n']);
} else {
self.parser.advance(&mut self.handler, *byte);
self.parser.advance(&mut self.handler, &[*byte]);
}
}