Mercurial > emacs
comparison src/.gdbinit @ 107641:d65c199e8bdd
Continue work on cursor movement in continued lines.
xdisp.c (try_cursor_movement): Give up if rows are
bidi-reordered and point moved backwards. Examine all the
candidate rows that occlude point, to return the best match.
(row_containing_pos): With bidi-reordered rows, don't return the
first one that occludes point; rather, examine all candidates and
return the best match, with he glyph that's closest to point.
(display_line): When looking for min position, don't consider
negative values of glyph->charpos. (Fixes a crash with "C-x 3" at
ZV.) Record the position after EOL in it->eol_pos, and use it to
set end_pos of the last row produced for a continued line. Fix
the condition for passing candidate rows to set_cursor_from_row:
check ends_at_zv_p flag of the best candidate row, not of the
current row.
dispextern.h (struct it): New member eol_pos.
.gdbinit (prowlims): Display the ends_at_zv_p flag.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 13 Mar 2010 11:38:01 -0500 |
parents | 844012bdb5dd |
children | 8cc4089eeeaa |
comparison
equal
deleted
inserted
replaced
107640:a744b1df50bd | 107641:d65c199e8bdd |
---|---|
612 document pgrowit | 612 document pgrowit |
613 Pretty print all glyphs in it->glyph_row. | 613 Pretty print all glyphs in it->glyph_row. |
614 end | 614 end |
615 | 615 |
616 define prowlims | 616 define prowlims |
617 printf "start=%d,end=%d,reversed=%d,cont=%d\n", $arg0->start.pos.charpos, $arg0->end.pos.charpos, $arg0->reversed_p, $arg0->continued_p | 617 printf "start=%d,end=%d,reversed=%d,cont=%d,at_zv=%d\n", $arg0->start.pos.charpos, $arg0->end.pos.charpos, $arg0->reversed_p, $arg0->continued_p, $arg0->ends_at_zv_p |
618 end | 618 end |
619 document prowlims | 619 document prowlims |
620 Print important attributes of a glyph_row structure. | 620 Print important attributes of a glyph_row structure. |
621 Takes one argument, a pointer to a glyph_row structure. | 621 Takes one argument, a pointer to a glyph_row structure. |
622 end | 622 end |