aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer/threads.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-05-03 22:47:58 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-05-03 22:47:58 +0200
commitc36df73b1e3d3c7f2feeda16e79bbdb2e1a4f251 (patch)
tree6cf577506aa96a4410cd7cfeb966f2a1f7a8cd82 /src/buffer/threads.rs
parent73807bf83e30aa14f3aa1a75afc8ade4ff4b929c (diff)
downloadmail-c36df73b1e3d3c7f2feeda16e79bbdb2e1a4f251.tar.gz
draw inside terminal size
Diffstat (limited to 'src/buffer/threads.rs')
-rw-r--r--src/buffer/threads.rs2
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) {