# HG changeset patch # User Gerd Moellmann # Date 985005294 0 # Node ID 95997b31956cdd7778796e7dce188a05d455a709 # Parent f9e2a2533bef0d0682170bfbccba8a5c32fe820d (highlight_trailing_whitespace): Glyphs whose object is an integer don't have to be for space characters. diff -r f9e2a2533bef -r 95997b31956c src/xdisp.c --- a/src/xdisp.c Mon Mar 19 10:42:07 2001 +0000 +++ b/src/xdisp.c Mon Mar 19 12:34:54 2001 +0000 @@ -8492,6 +8492,10 @@ xassert (this_line_vpos == it.vpos); xassert (this_line_y == it.current_y); set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0); +#if GLYPH_DEBUG + *w->desired_matrix->method = 0; + debug_method_add (w, "optimization 3"); +#endif goto update; } else @@ -12252,12 +12256,12 @@ struct glyph *start = row->glyphs[TEXT_AREA]; struct glyph *glyph = start + used - 1; - /* Skip over space glyphs inserted to display the cursor at the - end of a line, and for extending the face of the last glyph - to the end of the line on terminals. */ + /* Skip over glyphs inserted to display the cursor at the + end of a line, for extending the face of the last glyph + to the end of the line on terminals, and for truncation + and continuation glyphs. */ while (glyph >= start && glyph->type == CHAR_GLYPH - && glyph->u.ch == ' ' && INTEGERP (glyph->object)) --glyph;