summaryrefslogtreecommitdiff
path: root/ui/buffers.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-09-08 09:19:24 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-09-08 09:19:24 +0200
commit28e8baee508b3266bcc39c7e1d11794f2ca2a8e2 (patch)
tree523e07c710080c9556a3d68537939ee49908664b /ui/buffers.go
parentUse messageBounds for infinite scroll CHATHISTORY requests (diff)
Fix line wrapping not working on history
Diffstat (limited to 'ui/buffers.go')
-rw-r--r--ui/buffers.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/buffers.go b/ui/buffers.go
index 4ea2293..a24051e 100644
--- a/ui/buffers.go
+++ b/ui/buffers.go
@@ -307,6 +307,13 @@ func (bs *BufferList) AddLines(title string, before, after []Line) {
b := &bs.list[idx]
+ for i := 0; i < len(before); i++ {
+ before[i].computeSplitPoints()
+ }
+ for i := 0; i < len(after); i++ {
+ after[i].computeSplitPoints()
+ }
+
if len(before) != 0 {
b.lines = append(before, b.lines...)
}