aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer/threads.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/threads.rs')
-rw-r--r--src/buffer/threads.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer/threads.rs b/src/buffer/threads.rs
index ddef067..9439bb4 100644
--- a/src/buffer/threads.rs
+++ b/src/buffer/threads.rs
@@ -53,6 +53,10 @@ impl Threads {
res
}
+ pub fn name(&self) -> String {
+ format!("threads: '{}'", self.query)
+ }
+
pub fn reload(&mut self) {
self.threads = db::open(DatabaseMode::ReadOnly)
.unwrap()