aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/mod.rs')
-rw-r--r--src/buffer/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buffer/mod.rs b/src/buffer/mod.rs
index fe83a97..10b49c1 100644
--- a/src/buffer/mod.rs
+++ b/src/buffer/mod.rs
@@ -45,3 +45,11 @@ impl Client {
pub enum Buffer {
Threads(Threads),
}
+
+impl Buffer {
+ pub fn name(&self) -> String {
+ match self {
+ Buffer::Threads(t) => t.name(),
+ }
+ }
+}