Remove duplicated code introduced in commit 289057f

Closes #12432
This commit is contained in:
Nahor
2026-02-07 12:10:25 -08:00
committed by Johannes Altmanninger
parent cc1ae25c3a
commit 38513de954

View File

@@ -755,13 +755,6 @@ fn abandon_line_string(screen_width: Option<usize>) -> Vec<u8> {
// pasting your terminal log becomes a pain. This commit clears that line, making it an
// actual empty line.
abandon_line_string.write_command(ClearToEndOfLine);
abandon_line_string.push(b'\r');
// Clear entire line. Zsh doesn't do this. Fish added this with commit 4417a6ee: If you have
// a prompt preceded by a new line, you'll get a line full of spaces instead of an empty
// line above your prompt. This doesn't make a difference in normal usage, but copying and
// pasting your terminal log becomes a pain. This commit clears that line, making it an
// actual empty line.
abandon_line_string.write_command(ClearToEndOfLine);
abandon_line_string
}