diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-05-03 22:47:58 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-05-03 22:47:58 +0200 |
| commit | c36df73b1e3d3c7f2feeda16e79bbdb2e1a4f251 (patch) | |
| tree | 6cf577506aa96a4410cd7cfeb966f2a1f7a8cd82 /src/buffer/threads.rs | |
| parent | 73807bf83e30aa14f3aa1a75afc8ade4ff4b929c (diff) | |
| download | mail-c36df73b1e3d3c7f2feeda16e79bbdb2e1a4f251.tar.gz | |
draw inside terminal size
Diffstat (limited to 'src/buffer/threads.rs')
| -rw-r--r-- | src/buffer/threads.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<String>, @@ -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) { |
