summaryrefslogtreecommitdiff
path: root/src/.gdbinit
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-03-13 11:38:01 -0500
committerEli Zaretskii <eliz@gnu.org>2010-03-13 11:38:01 -0500
commit8eef7665fa98baae93da5151c27ca0db4d1d6f5b (patch)
tree889cf0c172a1ff24484c8f65d8babae7b003fff1 /src/.gdbinit
parent9565d1e6f3d09d5cd5afebd1b30a7571a27199cc (diff)
downloademacs-8eef7665fa98baae93da5151c27ca0db4d1d6f5b.tar.gz
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.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r--src/.gdbinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 659bc870710..b959baae8f3 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -614,7 +614,7 @@ Pretty print all glyphs in it->glyph_row.
end
define prowlims
- printf "start=%d,end=%d,reversed=%d,cont=%d\n", $arg0->start.pos.charpos, $arg0->end.pos.charpos, $arg0->reversed_p, $arg0->continued_p
+ 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
end
document prowlims
Print important attributes of a glyph_row structure.