Commit 74ca462f authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(update_frame_line): If writing whole line,

don't write trailing spaces unless we must.
parent f8e5fb70
......@@ -4835,11 +4835,19 @@ update_frame_line (frame, vpos)
/* If display line has unknown contents, write the whole line. */
if (must_write_whole_line_p)
if (!must_write_spaces)
while (nlen > 0 && CHAR_GLYPH_SPACE_P (nbody[nlen - 1]))
if (nlen)
cursor_to (vpos, 0);
write_glyphs (nbody, nlen);
cursor_to (vpos, nlen);
clear_end_of_line (-1);
clear_end_of_line (olen);
make_current (desired_matrix, current_matrix, vpos);
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