]> git.eshelyaron.com Git - emacs.git/commitdiff
(move_it_to): Handle GET_FROM_STRETCH method when checking for pos
authorChong Yidong <cyd@stupidchicken.com>
Tue, 30 Dec 2008 14:50:19 +0000 (14:50 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 30 Dec 2008 14:50:19 +0000 (14:50 +0000)
match.

src/xdisp.c

index ee5ecbab447948bd62ab4a59fedfb327bc791b84..60a132337f9f2ff5c615cfbbc1d8243d2fa64195 100644 (file)
@@ -7206,7 +7206,8 @@ move_it_to (it, to_charpos, to_x, to_y, to_vpos, op)
            break;
        }
       else if (BUFFERP (it->object)
-              && it->method == GET_FROM_BUFFER
+              && (it->method == GET_FROM_BUFFER
+                  || it->method == GET_FROM_STRETCH)
               && IT_CHARPOS (*it) >= to_charpos)
        skip = MOVE_POS_MATCH_OR_ZV;
       else