[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/window.c
From: |
Gerd Moellmann |
Subject: |
[Emacs-diffs] Changes to emacs/src/window.c |
Date: |
Wed, 12 Dec 2001 08:43:16 -0500 |
Index: emacs/src/window.c
diff -c emacs/src/window.c:1.392 emacs/src/window.c:1.393
*** emacs/src/window.c:1.392 Sat Dec 1 07:35:45 2001
--- emacs/src/window.c Wed Dec 12 08:43:16 2001
***************
*** 4584,4601 ****
nlines = - XINT (arg) - 1;
move_it_by_lines (&it, nlines, 1);
! y1 = it.current_y - y0;
! h = line_bottom_y (&it) - y1;
/* If we can't move down NLINES lines because we hit
the end of the buffer, count in some empty lines. */
if (it.vpos < nlines)
y1 += (nlines - it.vpos) * CANON_Y_UNIT (it.f);
! y0 = it.last_visible_y - y1 - h;
!
start_display (&it, w, pt);
! move_it_vertically (&it, - y0);
charpos = IT_CHARPOS (it);
bytepos = IT_BYTEPOS (it);
}
--- 4584,4600 ----
nlines = - XINT (arg) - 1;
move_it_by_lines (&it, nlines, 1);
! y1 = line_bottom_y (&it);
/* If we can't move down NLINES lines because we hit
the end of the buffer, count in some empty lines. */
if (it.vpos < nlines)
y1 += (nlines - it.vpos) * CANON_Y_UNIT (it.f);
! h = window_box_height (w) - (y1 - y0);
!
start_display (&it, w, pt);
! move_it_vertically (&it, - h);
charpos = IT_CHARPOS (it);
bytepos = IT_BYTEPOS (it);
}