Wrap collapsed nodes as well

This commit is contained in:
Anton Medvedev 2023-09-24 13:21:18 +02:00
parent 907e68dc61
commit a7249fea5a
No known key found for this signature in database

View File

@ -42,9 +42,13 @@ func wrapAll(n *node, termWidth int) {
}
}
}
if n.isCollapsed() {
n = n.collapsed
} else {
n = n.next
}
}
}
func doWrap(n *node, termWidth int) ([][]byte, int) {
lines := make([][]byte, 0, 1)