summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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...)
}