(display_line): Don't treat a newline as fitting

on the line.
This commit is contained in:
Gerd Moellmann 2001-01-27 12:40:49 +00:00
parent 2ce72bfaf9
commit 4dcd74e647
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2001-01-27 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (display_line): Don't treat a newline as fitting
on the line.
2001-01-26 Gerd Moellmann <gerd@gnu.org>
* window.c (size_window): Set the window's orig_top to nil when

View file

@ -12230,9 +12230,11 @@ display_line (it)
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);