changeset 62022:e0b1ba3bfcc9

(move_it_in_display_line_to): Fix last change.
author Kim F. Storm <storm@cua.dk>
date Mon, 02 May 2005 09:14:38 +0000
parents 512d79799fbd
children 457c8a332819
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon May 02 09:14:23 2005 +0000
+++ b/src/xdisp.c	Mon May 02 09:14:38 2005 +0000
@@ -5880,6 +5880,7 @@
       /* Stop if we move beyond TO_CHARPOS (after an image or stretch glyph).  */
       if ((op & MOVE_TO_POS) != 0
 	  && BUFFERP (it->object)
+	  && it->method == GET_FROM_BUFFER
 	  && IT_CHARPOS (*it) > to_charpos)
 	{
 	  result = MOVE_POS_MATCH_OR_ZV;