Commit 4dcd74e6 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

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

on the line.
parent 2ce72bfa
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
......
......@@ -12229,10 +12229,12 @@ display_line (it)
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment