Menu

#2378 Wrap line changes in 9292 (cc7e8dd305cb)

Bug
closed-fixed
5
2023-03-08
2023-02-09
Zufu Liu
No

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.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2023-02-12
    • summary: Warp line changes in 9292 (cc7e8dd305cb) --> Wrap line changes in 9292 (cc7e8dd305cb)
     
  • Neil Hodgson

    Neil Hodgson - 2023-02-12
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2023-02-12

    Committed fix with [91f198].

     

    Related

    Commit: [91f198]

  • Neil Hodgson

    Neil Hodgson - 2023-03-08
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.