aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-05-19 17:12:53 -0400
committerJesse Luehrs <doy@tozt.net>2018-05-19 17:12:53 -0400
commit6f581245bb06e1eb945150945f22503580069a41 (patch)
treef34f58023408009d3a1c313f1eed987f63805c30
parent85a6670e4a40cc77d1a472161013357ef880b6d7 (diff)
downloadfancy-prompt-6f581245bb06e1eb945150945f22503580069a41.tar.gz
fancy-prompt-6f581245bb06e1eb945150945f22503580069a41.zip
newlines shouldn't be prompt-escaped
these prompt escapes are specifically for characters that don't move the cursor
-rw-r--r--src/colors.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/colors.rs b/src/colors.rs
index 848507a..bb1744c 100644
--- a/src/colors.rs
+++ b/src/colors.rs
@@ -117,9 +117,7 @@ impl Colors {
&self,
t: &mut term::Terminal<Output=W>,
) {
- self.print_wrapped(t, |t| {
- write!(t, "{}", "\n").unwrap();
- });
+ write!(t, "{}", "\n").unwrap();
}
pub fn print_host<W: std::io::Write>(