From 522d42f715acfe3c4d5d0c6c20bad91b6dc245db Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 23 Apr 2001 14:58:40 +0000 Subject: [PATCH] (compute_char_face): If buffer is unibyte, set CH to zero instead of -1. --- src/ChangeLog | 5 +++++ src/xfaces.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 75a087c1c5a..dcd4dd19738 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-04-23 Gerd Moellmann + + * xfaces.c (compute_char_face): If buffer is unibyte, set CH to + zero instead of -1. + 2001-04-21 Eli Zaretskii * process.c (wait_reading_process_input) [!subprocesses]: Don't diff --git a/src/xfaces.c b/src/xfaces.c index 24f4c8406e3..8433460b47f 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6569,7 +6569,7 @@ compute_char_face (f, ch, prop) int face_id; if (NILP (current_buffer->enable_multibyte_characters)) - ch = -1; + ch = 0; if (NILP (prop)) { -- 2.39.2