pl011: fix incorrect byte written in write()
This commit is contained in:
@@ -98,7 +98,7 @@ impl TerminalOutput for Pl011Inner {
|
||||
if byte == b'\n' && options.contains(TerminalOutputOptions::NL_TO_CRNL) {
|
||||
lock.send(b'\r');
|
||||
}
|
||||
lock.send(b'\n');
|
||||
lock.send(byte);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use std::{
|
||||
env,
|
||||
io::{self, stdout, Read, Stdout, Write},
|
||||
io::{self, Read, Stdout, Write, stdout},
|
||||
process::ExitCode,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user