diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-07 14:27:37 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-07 14:27:37 -0500 |
commit | 5c224804ce75c88b78aee49fdc13a7452b1cd198 (patch) | |
tree | 68a0ccc00ec19c53d96674898228ae0dbb424067 /src/history.rs | |
parent | 08246280e5707cc6a3153efc9648e33d2e122054 (diff) | |
download | nbsh-5c224804ce75c88b78aee49fdc13a7452b1cd198.tar.gz nbsh-5c224804ce75c88b78aee49fdc13a7452b1cd198.zip |
improve how history scrolling works
Diffstat (limited to 'src/history.rs')
-rw-r--r-- | src/history.rs | 4 |
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() } |