aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/coding.c b/src/coding.c
index 5fc381e80b2..86be1b4020d 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6019,14 +6019,19 @@ consume_chars (coding)
6019 /* Note: composition handling is not yet implemented. */ 6019 /* Note: composition handling is not yet implemented. */
6020 coding->common_flags &= ~CODING_ANNOTATE_COMPOSITION_MASK; 6020 coding->common_flags &= ~CODING_ANNOTATE_COMPOSITION_MASK;
6021 6021
6022 if (coding->common_flags & CODING_ANNOTATE_COMPOSITION_MASK) 6022 if (NILP (coding->src_object))
6023 stop = stop_composition = pos; 6023 stop = stop_composition = stop_charset = end_pos;
6024 else 6024 else
6025 stop = stop_composition = end_pos; 6025 {
6026 if (coding->common_flags & CODING_ANNOTATE_CHARSET_MASK) 6026 if (coding->common_flags & CODING_ANNOTATE_COMPOSITION_MASK)
6027 stop = stop_charset = pos; 6027 stop = stop_composition = pos;
6028 else 6028 else
6029 stop_charset = end_pos; 6029 stop = stop_composition = end_pos;
6030 if (coding->common_flags & CODING_ANNOTATE_CHARSET_MASK)
6031 stop = stop_charset = pos;
6032 else
6033 stop_charset = end_pos;
6034 }
6030 6035
6031 /* Compensate for CRLF and annotation. */ 6036 /* Compensate for CRLF and annotation. */
6032 buf_end -= 1 + MAX_ANNOTATION_LENGTH; 6037 buf_end -= 1 + MAX_ANNOTATION_LENGTH;