From: Gerd Moellmann Date: Fri, 16 Feb 2001 15:12:14 +0000 (+0000) Subject: (set_window_buffer): Set window's vscroll to 0. X-Git-Tag: emacs-pretest-21.0.99~352 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc41dd5a0ab12f073f9731a276c37347326a9fdc;p=emacs.git (set_window_buffer): Set window's vscroll to 0. --- diff --git a/src/window.c b/src/window.c index 28500c405d0..aa819fd10ae 100644 --- a/src/window.c +++ b/src/window.c @@ -2626,8 +2626,8 @@ set_window_buffer (window, buffer, run_hooks_p) XSETFASTINT (w->window_end_vpos, 0); bzero (&w->last_cursor, sizeof w->last_cursor); w->window_end_valid = Qnil; - XSETFASTINT (w->hscroll, 0); - XSETFASTINT (w->min_hscroll, 0); + w->hscroll = w->min_height = make_number (0); + w->vscroll = make_number (0); set_marker_both (w->pointm, buffer, BUF_PT (b), BUF_PT_BYTE (b)); set_marker_restricted (w->start, make_number (b->last_window_start),