]> git.eshelyaron.com Git - emacs.git/commitdiff
(set_window_buffer): Set window's vscroll to 0.
authorGerd Moellmann <gerd@gnu.org>
Fri, 16 Feb 2001 15:12:14 +0000 (15:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 16 Feb 2001 15:12:14 +0000 (15:12 +0000)
src/window.c

index 28500c405d0ad42d1c265d83ac48e17b9fee5f18..aa819fd10aeaeb2600f9f305e0edf3835c69d8a9 100644 (file)
@@ -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),