aboutsummaryrefslogtreecommitdiff
path: root/src/display
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-11-13 01:50:33 -0800
committeriximeow <me@iximeow.net>2017-11-13 01:50:33 -0800
commit84de78e2282c51027fa59ed26a709f4033ccc760 (patch)
tree865b98e8cfd4ca264b2aecc614dc8030b417a3f1 /src/display
parentfcc94f8705ee0b604af25958668c30f79c3dec1d (diff)
inform me when the tweet cache cant be loaded
Diffstat (limited to 'src/display')
-rw-r--r--src/display/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/display/mod.rs b/src/display/mod.rs
index 8760f4a..7233f75 100644
--- a/src/display/mod.rs
+++ b/src/display/mod.rs
@@ -217,7 +217,9 @@ pub fn paint(tweeter: &mut ::tw::TwitterCache) -> Result<(), std::io::Error> {
wrapped.into_iter().rev().collect()
},
Infos::DM(msg) => {
- vec![format!("{}{}DM: {}", cursor::Goto(1, height - h), clear::CurrentLine, msg)]
+ let mut lines = vec![format!("{}{}{} DM:", cursor::Goto(1, height - h), clear::CurrentLine, "from")];
+ lines.push(msg);
+ lines
}
Infos::User(user) => {
vec![