~taiite/senpai

28e8baee508b3266bcc39c7e1d11794f2ca2a8e2 — Hubert Hirtz a month ago dc01205
Fix line wrapping not working on history
1 files changed, 7 insertions(+), 0 deletions(-)

M ui/buffers.go
M ui/buffers.go => ui/buffers.go +7 -0
@@ 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...)
	}