changeset 28362:a568b23317fe

(face_before_or_after_it_pos): Pass multibyteness to DEC_TEXT_POS and INC_TEXT_POS.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 27 Mar 2000 16:04:39 +0000
parents eccb57c44da5
children bc1a0c413baf
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Mar 27 16:03:29 2000 +0000
+++ b/src/xdisp.c	Mon Mar 27 16:04:39 2000 +0000
@@ -1969,7 +1969,7 @@
       pos = it->current.pos;
       
       if (before_p)
-	DEC_TEXT_POS (pos);
+	DEC_TEXT_POS (pos, it->multibyte_p);
       else
 	{
 	  if (it->what == IT_COMPOSITION)
@@ -1977,7 +1977,7 @@
 	       composition.  */
 	    pos.charpos += it->cmp_len, pos.bytepos += it->len;
 	  else
-	    INC_TEXT_POS (pos);
+	    INC_TEXT_POS (pos, it->multibyte_p);
 	}
       /* Determine face for CHARSET_ASCII, or unibyte.  */
       face_id = face_at_buffer_position (it->w,