]> code.delx.au - gnu-emacs/commitdiff
(move_it_in_display_line_to): Fix last change.
authorKim F. Storm <storm@cua.dk>
Mon, 2 May 2005 09:14:38 +0000 (09:14 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 2 May 2005 09:14:38 +0000 (09:14 +0000)
src/xdisp.c

index 80b2981c5bea2480dd526e40100fbf75ea904e6d..5ea68aff049106b54aa7c664fe81c9c7b53f103b 100644 (file)
@@ -5880,6 +5880,7 @@ move_it_in_display_line_to (it, to_charpos, to_x, op)
       /* 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;