pl011: fix incorrect byte written in write()

This commit is contained in:
2026-05-28 14:37:25 +03:00
parent 677ec96c08
commit 505a57abda
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ impl TerminalOutput for Pl011Inner {
if byte == b'\n' && options.contains(TerminalOutputOptions::NL_TO_CRNL) { if byte == b'\n' && options.contains(TerminalOutputOptions::NL_TO_CRNL) {
lock.send(b'\r'); lock.send(b'\r');
} }
lock.send(b'\n'); lock.send(byte);
Ok(()) Ok(())
} }
+1 -1
View File
@@ -1,6 +1,6 @@
use std::{ use std::{
env, env,
io::{self, stdout, Read, Stdout, Write}, io::{self, Read, Stdout, Write, stdout},
process::ExitCode, process::ExitCode,
}; };