# HG changeset patch # User Gerd Moellmann # Date 934929877 0 # Node ID 6b4475fbef86a19077c4f6087811fa8067b9616c # Parent 4d817651d5b477c7b4f5f73575bee1a0305b9283 (update_frame_line): If writing whole line, don't write trailing spaces unless we must. diff -r 4d817651d5b4 -r 6b4475fbef86 src/dispnew.c --- a/src/dispnew.c Tue Aug 17 22:44:35 1999 +0000 +++ b/src/dispnew.c Tue Aug 17 22:44:37 1999 +0000 @@ -4836,10 +4836,18 @@ /* If display line has unknown contents, write the whole line. */ if (must_write_whole_line_p) { - cursor_to (vpos, 0); - write_glyphs (nbody, nlen); + if (!must_write_spaces) + while (nlen > 0 && CHAR_GLYPH_SPACE_P (nbody[nlen - 1])) + --nlen; + + 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); return; }