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

@@ -488,7 +488,7 @@ func lines_for_context_chunk(data *DiffData, hunk_num int, chunk *Chunk, chunk_n
}
func splitlines(text string, width int) []string {
return style.WrapTextAsLines(text, "", width)
return style.WrapTextAsLines(text, width, style.WrapOptions{})
}
func render_half_line(line_number int, line, ltype string, available_cols int, center Center, ans []HalfScreenLine) []HalfScreenLine {