diff options
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c index 3723c79b6dd..9b24f989830 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -434,12 +434,18 @@ printchar (ch, fun) | |||
| 434 | printbufidx--; | 434 | printbufidx--; |
| 435 | } | 435 | } |
| 436 | bcopy (tembuf, FRAME_MESSAGE_BUF (mini_frame), printbufidx); | 436 | bcopy (tembuf, FRAME_MESSAGE_BUF (mini_frame), printbufidx); |
| 437 | message_enable_multibyte = 1; | ||
| 438 | } | 437 | } |
| 439 | 438 | ||
| 439 | /* Record whether the message buffer is multibyte. | ||
| 440 | (If at any point some multibyte characters are added, then it is.) */ | ||
| 441 | if (len > 0 && ! NILP (current_buffer->enable_multibyte_characters)) | ||
| 442 | message_enable_multibyte = 1; | ||
| 443 | |||
| 440 | if (printbufidx < FRAME_MESSAGE_BUF_SIZE (mini_frame) - len) | 444 | if (printbufidx < FRAME_MESSAGE_BUF_SIZE (mini_frame) - len) |
| 441 | bcopy (str, &FRAME_MESSAGE_BUF (mini_frame)[printbufidx], len), | 445 | { |
| 442 | printbufidx += len; | 446 | bcopy (str, &FRAME_MESSAGE_BUF (mini_frame)[printbufidx], len); |
| 447 | printbufidx += len; | ||
| 448 | } | ||
| 443 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0; | 449 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0; |
| 444 | echo_area_glyphs_length = printbufidx; | 450 | echo_area_glyphs_length = printbufidx; |
| 445 | 451 | ||