From 5905025ce48d3bb727000c4a7c5221737d9f48e8 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 7 Jul 2003 20:40:57 +0000 Subject: [PATCH] (reseat_1): Set it->area to TEXT_AREA. --- src/xdisp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 7584d55e69f..14b5d757b02 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4536,6 +4536,13 @@ reseat_1 (it, pos, set_stop_p) IT_STRING_BYTEPOS (*it) = -1; it->string = Qnil; it->method = next_element_from_buffer; + /* RMS: I added this to fix a bug in move_it_vertically_backward + where it->area continued to relate to the starting point + for the backward motion. Bug report from + Nick Roberts on 19 May 2003. + However, I am not sure whether reseat still does the right thing + in general after this change. */ + it->area = TEXT_AREA; it->multibyte_p = !NILP (current_buffer->enable_multibyte_characters); it->sp = 0; it->face_before_selective_p = 0; -- 2.39.2