]> git.eshelyaron.com Git - emacs.git/commitdiff
(reseat_1): Set IT's multibyte_p flag according to the
authorGerd Moellmann <gerd@gnu.org>
Thu, 13 Sep 2001 13:05:37 +0000 (13:05 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 13 Sep 2001 13:05:37 +0000 (13:05 +0000)
current buffer's multibyteness when discarding the iterator's
stack.

src/ChangeLog
src/xdisp.c

index c385f14159617d52082ec217faeec4758219c772..d1741c8a7ce70b243607818bb61d5ba189a6274e 100644 (file)
@@ -1,5 +1,9 @@
 2001-09-13  Gerd Moellmann  <gerd@gnu.org>
 
+       * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
+       current buffer's multibyteness when discarding the iterator's
+       stack.
+
        * xfns.c (Fx_window_property): Handle case that property gets
        deleted between the two calls to XGetWindowProperty.
 
index c0659ed26ff835d784a3ae1aa73fd1f97015d25e..a3ac927f785ddb5711549eb6e1ef34abbd354d18 100644 (file)
@@ -4039,6 +4039,7 @@ reseat_1 (it, pos, set_stop_p)
   IT_STRING_BYTEPOS (*it) = -1;
   it->string = Qnil;
   it->method = next_element_from_buffer;
+  it->multibyte_p = !NILP (current_buffer->enable_multibyte_characters);
   it->sp = 0;
   it->face_before_selective_p = 0;