* src/xdisp.c (display_line): Handle TAB at end of screen line
specially only when we are displaying characters. (Bug#25662)
up to the right margin of the window. */
extend_face_to_end_of_line (it);
}
- else if (it->c == '\t' && FRAME_WINDOW_P (it->f))
+ else if ((it->what == IT_CHARACTER
+ || it->what == IT_STRETCH
+ || it->what == IT_COMPOSITION)
+ && it->c == '\t' && FRAME_WINDOW_P (it->f))
{
/* A TAB that extends past the right edge of the
window. This produces a single glyph on