diff --git a/src/editor.rs b/src/editor.rs index 69b74e4824ffae3b45471d7e4f864a62f3fa1b59..2532b435d7eeb09c8be40cd714e26e2b7dd03e7f 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -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');