stop the prompt from removing the last newline

This commit is contained in:
tsukimizake 2024-12-15 17:44:37 +09:00
parent baf86dfb0e
commit be6881e28f

View File

@ -87,14 +87,6 @@ fn get_prompt_string(
x.insert_str(0, "\x1b[0m") 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 x
}); });
// Let's keep this for debugging purposes with nu --log-level warn // Let's keep this for debugging purposes with nu --log-level warn