]> git.eshelyaron.com Git - emacs.git/commitdiff
(reseat_1): Set it->area to TEXT_AREA.
authorRichard M. Stallman <rms@gnu.org>
Mon, 7 Jul 2003 20:40:57 +0000 (20:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 7 Jul 2003 20:40:57 +0000 (20:40 +0000)
src/xdisp.c

index 7584d55e69ff492d78ec81295a1fa31b9c799b0c..14b5d757b029448ee6a67c2257a60406bc930fff 100644 (file)
@@ -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;