aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-27 16:05:50 +0000
committerGerd Moellmann2000-03-27 16:05:50 +0000
commitc1005d06e8faa630d180fcd16fa2c6db65051e2f (patch)
tree38d33f57d580c08ff6b673dc3f7fe48df9aae8a7 /src/xdisp.c
parent5f15d71229d0aca9ab7dd4e27a3bd6094e9d789f (diff)
downloademacs-c1005d06e8faa630d180fcd16fa2c6db65051e2f.tar.gz
emacs-c1005d06e8faa630d180fcd16fa2c6db65051e2f.zip
(face_before_or_after_it_pos): Pass multibyteness
to DEC_TEXT_POS and INC_TEXT_POS.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 12c95051436..16ab84c9cb7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1969,7 +1969,7 @@ face_before_or_after_it_pos (it, before_p)
1969 pos = it->current.pos; 1969 pos = it->current.pos;
1970 1970
1971 if (before_p) 1971 if (before_p)
1972 DEC_TEXT_POS (pos); 1972 DEC_TEXT_POS (pos, it->multibyte_p);
1973 else 1973 else
1974 { 1974 {
1975 if (it->what == IT_COMPOSITION) 1975 if (it->what == IT_COMPOSITION)
@@ -1977,7 +1977,7 @@ face_before_or_after_it_pos (it, before_p)
1977 composition. */ 1977 composition. */
1978 pos.charpos += it->cmp_len, pos.bytepos += it->len; 1978 pos.charpos += it->cmp_len, pos.bytepos += it->len;
1979 else 1979 else
1980 INC_TEXT_POS (pos); 1980 INC_TEXT_POS (pos, it->multibyte_p);
1981 } 1981 }
1982 /* Determine face for CHARSET_ASCII, or unibyte. */ 1982 /* Determine face for CHARSET_ASCII, or unibyte. */
1983 face_id = face_at_buffer_position (it->w, 1983 face_id = face_at_buffer_position (it->w,