summaryrefslogtreecommitdiff
path: root/client/buffer/buffer.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/buffer/buffer.go')
-rw-r--r--client/buffer/buffer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/buffer/buffer.go b/client/buffer/buffer.go
index 9750932..b7e79e9 100644
--- a/client/buffer/buffer.go
+++ b/client/buffer/buffer.go
@@ -94,10 +94,11 @@ func (b *Buffer) AtTop() bool {
}
func (b *Buffer) Show(id string) (atTop bool) {
- tui.Push(id, tui.Box {
+ mouse := tui.Push(id, tui.Box {
Width: tui.Fill, Height: tui.Fill, Dir: tui.Up, Overflow: true,
Style: &tui.Style {Fg: tui.White, Bg: 232}, Scroll: &b.scroll,
})
+ b.scroll.ByMouse(mouse, true)
defer tui.Pop()
for m := b.bottom; m != nil; m = m.prev {