summaryrefslogtreecommitdiff
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-07-07 20:40:57 +0000
committerRichard M. Stallman <rms@gnu.org>2003-07-07 20:40:57 +0000
commit5905025ce48d3bb727000c4a7c5221737d9f48e8 (patch)
treec13db73285fb04a453c79cfb98bdf9d3e646cd1c /src/xdisp.c
parente1e375966ecb9d48709c2717701e3fde80390307 (diff)
downloademacs-5905025ce48d3bb727000c4a7c5221737d9f48e8.tar.gz
(reseat_1): Set it->area to TEXT_AREA.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c7
1 files changed, 7 insertions, 0 deletions
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 <nick@nick.uklinux.net> 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;