commit 28e8bae

Hubert Hirtz  ·  2021-09-08 07:19:24 +0000 UTC
parent dc01205
Fix line wrapping not working on history
1 files changed,  +7, -0
+7, -0
 1@@ -307,6 +307,13 @@ func (bs *BufferList) AddLines(title string, before, after []Line) {
 2 
 3 	b := &bs.list[idx]
 4 
 5+	for i := 0; i < len(before); i++ {
 6+		before[i].computeSplitPoints()
 7+	}
 8+	for i := 0; i < len(after); i++ {
 9+		after[i].computeSplitPoints()
10+	}
11+
12 	if len(before) != 0 {
13 		b.lines = append(before, b.lines...)
14 	}