• Eli Zaretskii's avatar
    Fix cursor movement in R2L text within L2R paragraphs. · 8610fe8b
    Eli Zaretskii authored
     src/xdisp.c (set_cursor_from_row): Consider candidate row a win if its
     glyph represents a newline and point is on that newline.  Fixes cursor
     positioning on the newline at EOL of R2L text within L2R
     paragraph, and vice versa.
     (try_cursor_movement): Check continued rows, in addition to
     continuation rows.  Fixes unwarranted scroll when point enters a
     continued line of R2L text within an L2R paragraph, or vice versa.
     (cursor_row_p): Consider the case of point being equal to
     MATRIX_ROW_END_CHARPOS.  Prevents cursor being stuck when moving
     from the end of a short line to the beginning of a continued line
     of R2L text within L2R paragraph.
     (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for
     composed characters.
    8610fe8b
xdisp.c 849 KB