From d8abe9d8dd9bf0798a4381be1cb11ac92b5fb8bd Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 30 Dec 2008 14:50:19 +0000 Subject: [PATCH] (move_it_to): Handle GET_FROM_STRETCH method when checking for pos match. --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index ee5ecbab447..60a132337f9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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 -- 2.39.2