summaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/history.rs b/src/history.rs
index 5397c68..048cc1e 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -194,6 +194,10 @@ impl History {
}
}
}
+
+ pub fn entry_count(&self) -> usize {
+ self.entries.len()
+ }
}
struct HistoryEntry {