Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.1004 emacs/src/xdisp.c:1.1005
*** emacs/src/xdisp.c:1.1004 Sat Apr 30 20:08:12 2005
--- emacs/src/xdisp.c Sun May 1 21:42:34 2005
***************
*** 5877,5882 ****
--- 5877,5891 ----
{
int x, i, ascent = 0, descent = 0;
+ /* Stop if we move beyond TO_CHARPOS (after an image or stretch glyph).
*/
+ if ((op & MOVE_TO_POS) != 0
+ && BUFFERP (it->object)
+ && IT_CHARPOS (*it) > to_charpos)
+ {
+ result = MOVE_POS_MATCH_OR_ZV;
+ break;
+ }
+
/* Stop when ZV reached.
We used to stop here when TO_CHARPOS reached as well, but that is
too soon if this glyph does not fit on this line. So we handle it
_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs