Commit 1db8a317 authored by AdminXVII's avatar AdminXVII

Fix regression with non-empty line

parent ce3351b7
......@@ -989,6 +989,9 @@ impl<'a, W: Write> Editor<'a, W> {
if !self.no_newline {
output_buf.append("⏎".as_bytes());
for _ in 0..(terminal_width - 1) {
output_buf.push(b' '); // if the line is not empty, owerflow on next line
}
}
output_buf.push(b'\r');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment