Commit 708d172a authored by Richard M. Stallman's avatar Richard M. Stallman

(printchar, strout): Set echo_area_glyphs_length.

parent 5141b901
......@@ -205,12 +205,14 @@ printchar (ch, fun)
{
echo_area_glyphs = FRAME_MESSAGE_BUF (selected_frame);
printbufidx = 0;
echo_area_glyphs_length = 0;
message_buf_print = 1;
}
if (printbufidx < FRAME_WIDTH (selected_frame) - 1)
FRAME_MESSAGE_BUF (selected_frame)[printbufidx++] = ch;
FRAME_MESSAGE_BUF (selected_frame)[printbufidx] = 0;
echo_area_glyphs_length = printbufidx;
return;
}
......@@ -257,6 +259,7 @@ strout (ptr, size, printcharfun)
{
echo_area_glyphs = FRAME_MESSAGE_BUF (selected_frame);
printbufidx = 0;
echo_area_glyphs_length = 0;
message_buf_print = 1;
}
......@@ -264,6 +267,7 @@ strout (ptr, size, printcharfun)
i = FRAME_WIDTH (selected_frame) - printbufidx - 1;
bcopy (ptr, &FRAME_MESSAGE_BUF (selected_frame) [printbufidx], i);
printbufidx += i;
echo_area_glyphs_length = printbufidx;
FRAME_MESSAGE_BUF (selected_frame) [printbufidx] = 0;
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment