From 38513de954d9fe16d6cb01e49dad4947df22491b Mon Sep 17 00:00:00 2001 From: Nahor Date: Sat, 7 Feb 2026 12:10:25 -0800 Subject: [PATCH] Remove duplicated code introduced in commit 289057f Closes #12432 --- src/screen.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/screen.rs b/src/screen.rs index ddc400967..685ffa995 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -755,13 +755,6 @@ fn abandon_line_string(screen_width: Option) -> Vec { // 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 }