summaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-07 14:27:37 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-07 14:27:37 -0500
commit5c224804ce75c88b78aee49fdc13a7452b1cd198 (patch)
tree68a0ccc00ec19c53d96674898228ae0dbb424067 /src/history.rs
parent08246280e5707cc6a3153efc9648e33d2e122054 (diff)
downloadnbsh-5c224804ce75c88b78aee49fdc13a7452b1cd198.tar.gz
nbsh-5c224804ce75c88b78aee49fdc13a7452b1cd198.zip
improve how history scrolling works
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 bf09856..9b4310e 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -129,6 +129,10 @@ impl History {
self.entries[idx].lock_arc().await.should_fullscreen()
}
+ pub async fn running(&self, idx: usize) -> bool {
+ self.entries[idx].lock_arc().await.running()
+ }
+
pub fn entry_count(&self) -> usize {
self.entries.len()
}