aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-27 12:40:49 +0000
committerGerd Moellmann2001-01-27 12:40:49 +0000
commit4dcd74e647a3843982238edfe19f8f390d9e47b7 (patch)
treeefc96f20a2dd1b04939ff7f49f705ec7b3cf7df8 /src
parent2ce72bfaf9a12231843f17dad9cdc8c5109401c8 (diff)
downloademacs-4dcd74e647a3843982238edfe19f8f390d9e47b7.tar.gz
emacs-4dcd74e647a3843982238edfe19f8f390d9e47b7.zip
(display_line): Don't treat a newline as fitting
on the line.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 929096d98ee..76c2161b2bd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-01-27 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (display_line): Don't treat a newline as fitting
4 on the line.
5
12001-01-26 Gerd Moellmann <gerd@gnu.org> 62001-01-26 Gerd Moellmann <gerd@gnu.org>
2 7
3 * window.c (size_window): Set the window's orig_top to nil when 8 * window.c (size_window): Set the window's orig_top to nil when
diff --git a/src/xdisp.c b/src/xdisp.c
index a8803c077ca..dffef44f487 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12229,10 +12229,12 @@ display_line (it)
12229 nglyphs = row->used[TEXT_AREA] - n_glyphs_before; 12229 nglyphs = row->used[TEXT_AREA] - n_glyphs_before;
12230 hpos_before = it->hpos; 12230 hpos_before = it->hpos;
12231 x_before = x; 12231 x_before = x;
12232 12232
12233 if (it->current_x < it->last_visible_x) 12233 if (/* Not a newline. */
12234 { 12234 nglyphs > 0
12235 /* Glyphs produced fit entirely in the line. */ 12235 /* Glyphs produced fit entirely in the line. */
12236 && it->current_x < it->last_visible_x)
12237 {
12236 it->hpos += nglyphs; 12238 it->hpos += nglyphs;
12237 row->ascent = max (row->ascent, it->max_ascent); 12239 row->ascent = max (row->ascent, it->max_ascent);
12238 row->height = max (row->height, it->max_ascent + it->max_descent); 12240 row->height = max (row->height, it->max_ascent + it->max_descent);