mirror of
https://github.com/nushell/nushell.git
synced 2025-01-03 04:50:28 +01:00
stop the prompt from removing the last newline
This commit is contained in:
parent
baf86dfb0e
commit
be6881e28f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user