fix: Clear before printing prompt (#739)
This clears any leftover text when the prompt updates in-place (e.g. Alt + Left/Right in fish shell)
This commit is contained in:
parent
6a2b0a67b0
commit
f898b22b55
|
@ -24,6 +24,8 @@ pub fn get_prompt(context: Context) -> String {
|
||||||
writeln!(buf).unwrap();
|
writeln!(buf).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buf.push_str("\x1b[J");
|
||||||
|
|
||||||
let mut prompt_order: Vec<&str> = Vec::new();
|
let mut prompt_order: Vec<&str> = Vec::new();
|
||||||
|
|
||||||
// Write out a custom prompt order
|
// Write out a custom prompt order
|
||||||
|
|
Loading…
Reference in New Issue