logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mdraw_default_line_break -

Description

       Calculate a line breaking position. The function mdraw_default_line_break() calculates a line breaking
       position based on the line number line and the coordinate y, when a line is too long to fit within the
       width limit.  pos is the position of the character next to the last one that fits within the limit.  from
       is the position of the first character of the line, and to is the position of the last character
       displayed on the line if there were not width limit.  line and y are reset to 0 when a line is broken by
       a newline character, and incremented each time when a long line is broken because of the width limit.

Name

       mdraw_default_line_break -

Return Value

           This function returns a character position to break the line.

Synopsis

       int mdraw_default_line_break (MText * mt, int pos, int from, int to, int line, int y)

See Also