]> git.eshelyaron.com Git - emacs.git/commitdiff
(direct_output_for_insert): Use DEC_TEXT_POS
authorGerd Moellmann <gerd@gnu.org>
Mon, 27 Mar 2000 16:03:29 +0000 (16:03 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 27 Mar 2000 16:03:29 +0000 (16:03 +0000)
with parameter MULTIBYTE_P.

src/dispnew.c

index dddee0eef8df66869e6b3c92092a05af3c0f8926..00590605af20c8b68c587df18cb5b729ffcab8d9 100644 (file)
@@ -3162,7 +3162,7 @@ direct_output_for_insert (g)
      position.  */
   clear_glyph_row (&scratch_glyph_row);
   SET_TEXT_POS (pos, PT, PT_BYTE);
-  DEC_TEXT_POS (pos);
+  DEC_TEXT_POS (pos, !NILP (current_buffer->enable_multibyte_characters));
   init_iterator (&it, w, CHARPOS (pos), BYTEPOS (pos), &scratch_glyph_row,
                 DEFAULT_FACE_ID);