Allow passing multiple options to control how wrapping is done

This commit is contained in:
Kovid Goyal
2023-03-29 20:56:24 +05:30
parent cb99fbd83c
commit 34526517de
6 changed files with 28 additions and 18 deletions

View File

@@ -339,7 +339,7 @@ func (self *handler) draw_screen() {
sz, _ := self.lp.ScreenSize()
write_help := func(x string) {
lines := style.WrapTextAsLines(x, "", int(sz.WidthCells)-1)
lines := style.WrapTextAsLines(x, int(sz.WidthCells)-1, style.WrapOptions{})
for _, line := range lines {
if line != "" {
writeln(self.dim_formatter(line))