From 672d50899438788e5656169e28a104b72563cb6b Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Mon, 13 Nov 2017 01:50:33 -0800 Subject: inform me when the tweet cache cant be loaded --- src/display/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/display') 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![ -- cgit v1.1