xdisp.c (extend_face_to_end_of_line): Fix off-by-one error on
TTY frames in testing whether a line needs face extension.
2010-04-17 Eli Zaretskii <eliz@gnu.org>
+ * xdisp.c (extend_face_to_end_of_line): Fix off-by-one error on
+ TTY frames in testing whether a line needs face extension.
+
* xdisp.c (extend_face_to_end_of_line): Fix face extension at ZV.
* term.c (produce_special_glyphs): Mirror the backslash
struct face *face;
struct frame *f = it->f;
- /* If line is already filled, do nothing. */
- if (it->current_x >= it->last_visible_x)
+ /* If line is already filled, do nothing. Non window-system frames
+ get a grace of one more ``pixel'' because their characters are
+ 1-``pixel'' wide, so they hit the equality too early. */
+ if (it->current_x >= it->last_visible_x + !FRAME_WINDOW_P (f))
return;
/* Face extension extends the background and box of IT->face_id