# HG changeset patch # User Chong Yidong # Date 1230648619 0 # Node ID 87e66edb874a023dc38bc3f24c6c6d56f0608841 # Parent fad34d727ca8de247b5f2c933384765773e2fdb1 (move_it_to): Handle GET_FROM_STRETCH method when checking for pos match. diff -r fad34d727ca8 -r 87e66edb874a src/xdisp.c --- a/src/xdisp.c Tue Dec 30 14:49:28 2008 +0000 +++ b/src/xdisp.c Tue Dec 30 14:50:19 2008 +0000 @@ -7206,7 +7206,8 @@ 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