From c36df73b1e3d3c7f2feeda16e79bbdb2e1a4f251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 3 May 2021 22:47:58 +0200 Subject: draw inside terminal size --- src/buffer/threads.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buffer/threads.rs') diff --git a/src/buffer/threads.rs b/src/buffer/threads.rs index edc2339..49d9924 100644 --- a/src/buffer/threads.rs +++ b/src/buffer/threads.rs @@ -12,6 +12,7 @@ pub struct Threads { query: String, } +#[derive(Clone)] pub struct Thread { subject: String, authors: Vec, @@ -66,6 +67,7 @@ impl Threads { .unwrap() .map(Thread::new) .collect(); + self.threads.append(&mut self.threads.clone()); } pub fn fill_window(&self, window: &mut Window) { -- cgit v1.2.1