mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
committed by
Johannes Altmanninger
parent
cc1ae25c3a
commit
38513de954
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user