summaryrefslogtreecommitdiff
path: root/client/buffer
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-02 06:40:29 -0500
committercitrons <citrons@mondecitronne.com>2025-06-02 06:40:29 -0500
commit58281da28614386809eab60c9dcbb86082354f1b (patch)
treefc53eba37cbad850f14b13a45cf5436a5f9acf00 /client/buffer
parent33e59b1b318ea911d9a63cd78c6bc5eee0bb4109 (diff)
indicate when the user is scrolled up
Diffstat (limited to 'client/buffer')
-rw-r--r--client/buffer/buffer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/buffer/buffer.go b/client/buffer/buffer.go
index 921ad00..3fea156 100644
--- a/client/buffer/buffer.go
+++ b/client/buffer/buffer.go
@@ -77,6 +77,10 @@ func (b *Buffer) ScrollBottom() {
b.scroll.ToStart()
}
+func (b *Buffer) ScrollPos() int {
+ return b.scroll.Get()
+}
+
func (b *Buffer) AtBottom() bool {
return b.scroll.AtFirst()
}