aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-04-25 18:04:16 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-04-25 18:04:16 +0200
commit22cdbaff8decb09bc189a5a29e4c239801a402cc (patch)
tree5ed75c9d9bfa58099d488563e877ee4549009f72 /src/main.rs
parent09ec573753eef123c52c4c6106e63be707675b76 (diff)
downloadmail-22cdbaff8decb09bc189a5a29e4c239801a402cc.tar.gz
dont write newlines
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index ea7830c..44b33d1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -44,9 +44,10 @@ fn show_threads(stdout: &mut RawTerminal<Stdout>, threads: &Vec<String>, highlig
if highlight {
write!(stdout, "{}", color::Fg(color::Red)).unwrap();
}
- writeln!(stdout, "{}", thread).unwrap();
+ write!(stdout, "{}", thread).unwrap();
if highlight {
write!(stdout, "{}", color::Fg(color::Reset)).unwrap();
}
}
+ stdout.flush().unwrap();
}