widthLine used inside LineLayout::WrapLine() is diff from origin code with width, due to
if (FlagSet(vstyle.wrap.visualFlags, WrapVisualFlag::End)) {
width -= static_cast<int>(vstyle.aveCharWidth); // take into account the space for end wrap mark
}
attached a patch that pass updated width as XYPOSITION wrapWidth to WrapLine(), also including small change to wrapIndent computing.
Committed fix with [91f198].
Related
Commit: [91f198]