diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index a1a4220..59ed28d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ -mod db; mod buffer; +mod db; +mod window; use crate::buffer::{Client, Buffer}; use crate::buffer::Threads; @@ -16,8 +17,7 @@ fn main() { let mut screen = termion::cursor::HideCursor::from(screen); let threads = Threads::from_query(String::from("tag:inbox")); - threads.init(&mut screen); - let client = Client::new(Buffer::Threads(threads)); - client.run(screen, stdin); + let client = Client::new(Buffer::Threads(threads), &mut screen); + client.run(&mut screen, stdin); } |
