diff --git a/crates/nu-cli/src/prompt_update.rs b/crates/nu-cli/src/prompt_update.rs index c033475586..661b8c65f7 100644 --- a/crates/nu-cli/src/prompt_update.rs +++ b/crates/nu-cli/src/prompt_update.rs @@ -87,14 +87,6 @@ fn get_prompt_string( x.insert_str(0, "\x1b[0m") }; - // Just remove the very last newline. - if x.ends_with('\n') { - x.pop(); - } - - if x.ends_with('\r') { - x.pop(); - } x }); // Let's keep this for debugging purposes with nu --log-level warn