# HG changeset patch # User Gerd Moellmann # Date 980599220 0 # Node ID 369c647a5ed57381edf932dc713cd9a7020a1a6d # Parent 6ed788afc91f1eb9bc45e7ad7d55fa868376934e (display_line): Don't treat a newline as fitting on the line. diff -r 6ed788afc91f -r 369c647a5ed5 src/xdisp.c --- a/src/xdisp.c Sat Jan 27 12:30:56 2001 +0000 +++ b/src/xdisp.c Sat Jan 27 12:40:20 2001 +0000 @@ -12229,10 +12229,12 @@ nglyphs = row->used[TEXT_AREA] - n_glyphs_before; hpos_before = it->hpos; x_before = x; - - if (it->current_x < it->last_visible_x) - { + + if (/* Not a newline. */ + nglyphs > 0 /* Glyphs produced fit entirely in the line. */ + && it->current_x < it->last_visible_x) + { it->hpos += nglyphs; row->ascent = max (row->ascent, it->max_ascent); row->height = max (row->height, it->max_ascent + it->max_descent);