From: Gerd Moellmann Date: Mon, 8 Jan 2001 14:37:40 +0000 (+0000) Subject: (window_scroll_pixel_based): Adjust glyph matrices X-Git-Tag: emacs-pretest-21.0.95~60 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a74eca500004b046006d4eaf7c59760fccf9e545;p=emacs.git (window_scroll_pixel_based): Adjust glyph matrices when increasing window's vscroll. --- diff --git a/src/window.c b/src/window.c index 16455f59220..87b2c59ddb2 100644 --- a/src/window.c +++ b/src/window.c @@ -3995,10 +3995,13 @@ window_scroll_pixel_based (window, n, whole, noerror) { if (it.current_y + it.max_ascent + it.max_descent > it.last_visible_y) - /* The last line was only partially visible, make it fully - visible. */ - w->vscroll = (it.last_visible_y - - it.current_y + it.max_ascent + it.max_descent); + { + /* The last line was only partially visible, make it fully + visible. */ + w->vscroll = (it.last_visible_y + - it.current_y + it.max_ascent + it.max_descent); + adjust_glyphs (it.f); + } else if (noerror) return; else