[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/window.c
From: |
Kim F . Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/window.c |
Date: |
Sat, 22 Jan 2005 19:50:25 -0500 |
Index: emacs/src/window.c
diff -c emacs/src/window.c:1.492 emacs/src/window.c:1.493
*** emacs/src/window.c:1.492 Sat Jan 22 01:41:47 2005
--- emacs/src/window.c Sun Jan 23 00:50:24 2005
***************
*** 4628,4635 ****
if (dy <= 0)
move_it_vertically_backward (&it, -dy);
else if (dy > 0)
! move_it_to (&it, ZV, -1, it.current_y + dy, -1,
! MOVE_TO_POS | MOVE_TO_Y);
}
else
move_it_by_lines (&it, n, 1);
--- 4628,4643 ----
if (dy <= 0)
move_it_vertically_backward (&it, -dy);
else if (dy > 0)
! {
! int start_pos = IT_CHARPOS (it);
! move_it_to (&it, ZV, -1, it.current_y + dy, -1,
! MOVE_TO_POS | MOVE_TO_Y);
! /* Ensure we actually does move, e.g. in case we are currently
! looking at an image that is taller that the window height. */
! while (start_pos == IT_CHARPOS (it)
! && start_pos < ZV)
! move_it_by_lines (&it, 1, 1);
! }
}
else
move_it_by_lines (&it, n, 1);