summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-05-02 09:14:38 +0000
committerKim F. Storm <storm@cua.dk>2005-05-02 09:14:38 +0000
commit5fd5f17c161bd216001f505c2c02e6ff609a783f (patch)
tree546fa07fa34b1f1273e71d773e1ed3c83ebbb07d /src
parent4b3f161f5b0b04a83975164ec1574b5728789444 (diff)
downloademacs-5fd5f17c161bd216001f505c2c02e6ff609a783f.tar.gz
(move_it_in_display_line_to): Fix last change.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 80b2981c5be..5ea68aff049 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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;