diff options
author | Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> | 2022-02-14 17:41:55 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 13:11:55 +0100 |
commit | e9e090e97eef3e6b9c74e0f1e183772cc2fa9b1d (patch) | |
tree | ea128d2795b09137753d64402c32a96ef76cb3fb /src | |
parent | e01abaac3be3a9831d771d8b28ff8aa8d14056f6 (diff) |
fix(fish): Emit clear-screen escape sequence only in left prompt (#3588)
Diffstat (limited to 'src')
-rw-r--r-- | src/print.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.rs b/src/print.rs index 79fc1a604..682ad7cfb 100644 --- a/src/print.rs +++ b/src/print.rs @@ -75,7 +75,7 @@ pub fn get_prompt(context: Context) -> String { // A workaround for a fish bug (see #739,#279). Applying it to all shells // breaks things (see #808,#824,#834). Should only be printed in fish. - if let Shell::Fish = context.shell { + if Shell::Fish == context.shell && context.target == Target::Main { buf.push_str("\x1b[J"); // An ASCII control code to clear screen } |