diff options
| author | Richard M. Stallman | 1993-12-23 01:09:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 01:09:51 +0000 |
| commit | 708d172af2fb0b70ece1824c669187865736763d (patch) | |
| tree | cbe8598a2d766b8723495eb83c2d700c87168531 /src | |
| parent | 5141b90115f1a37a9bb7fb599df5b08b1f12a385 (diff) | |
| download | emacs-708d172af2fb0b70ece1824c669187865736763d.tar.gz emacs-708d172af2fb0b70ece1824c669187865736763d.zip | |
(printchar, strout): Set echo_area_glyphs_length.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index 83dcb2a766d..cb8418461de 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -205,12 +205,14 @@ printchar (ch, fun) | |||
| 205 | { | 205 | { |
| 206 | echo_area_glyphs = FRAME_MESSAGE_BUF (selected_frame); | 206 | echo_area_glyphs = FRAME_MESSAGE_BUF (selected_frame); |
| 207 | printbufidx = 0; | 207 | printbufidx = 0; |
| 208 | echo_area_glyphs_length = 0; | ||
| 208 | message_buf_print = 1; | 209 | message_buf_print = 1; |
| 209 | } | 210 | } |
| 210 | 211 | ||
| 211 | if (printbufidx < FRAME_WIDTH (selected_frame) - 1) | 212 | if (printbufidx < FRAME_WIDTH (selected_frame) - 1) |
| 212 | FRAME_MESSAGE_BUF (selected_frame)[printbufidx++] = ch; | 213 | FRAME_MESSAGE_BUF (selected_frame)[printbufidx++] = ch; |
| 213 | FRAME_MESSAGE_BUF (selected_frame)[printbufidx] = 0; | 214 | FRAME_MESSAGE_BUF (selected_frame)[printbufidx] = 0; |
| 215 | echo_area_glyphs_length = printbufidx; | ||
| 214 | 216 | ||
| 215 | return; | 217 | return; |
| 216 | } | 218 | } |
| @@ -257,6 +259,7 @@ strout (ptr, size, printcharfun) | |||
| 257 | { | 259 | { |
| 258 | echo_area_glyphs = FRAME_MESSAGE_BUF (selected_frame); | 260 | echo_area_glyphs = FRAME_MESSAGE_BUF (selected_frame); |
| 259 | printbufidx = 0; | 261 | printbufidx = 0; |
| 262 | echo_area_glyphs_length = 0; | ||
| 260 | message_buf_print = 1; | 263 | message_buf_print = 1; |
| 261 | } | 264 | } |
| 262 | 265 | ||
| @@ -264,6 +267,7 @@ strout (ptr, size, printcharfun) | |||
| 264 | i = FRAME_WIDTH (selected_frame) - printbufidx - 1; | 267 | i = FRAME_WIDTH (selected_frame) - printbufidx - 1; |
| 265 | bcopy (ptr, &FRAME_MESSAGE_BUF (selected_frame) [printbufidx], i); | 268 | bcopy (ptr, &FRAME_MESSAGE_BUF (selected_frame) [printbufidx], i); |
| 266 | printbufidx += i; | 269 | printbufidx += i; |
| 270 | echo_area_glyphs_length = printbufidx; | ||
| 267 | FRAME_MESSAGE_BUF (selected_frame) [printbufidx] = 0; | 271 | FRAME_MESSAGE_BUF (selected_frame) [printbufidx] = 0; |
| 268 | 272 | ||
| 269 | return; | 273 | return; |