Mercurial > emacs
changeset 40366:e2acdd1b8bb7
(move_it_vertically_backward): Use 2/3 line_height
instead of 1/2 line_height in the heuristic for skipping
farther backward when target_y was not reached.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 27 Oct 2001 08:54:39 +0000 |
parents | 4d0ee02b1d41 |
children | 62d084b48d74 |
files | src/xdisp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Oct 27 08:49:39 2001 +0000 +++ b/src/xdisp.c Sat Oct 27 08:54:39 2001 +0000 @@ -5377,7 +5377,7 @@ a line height of 13 pixels each, recentering with point on the bottom line will try to move -39/2 = 19 pixels backward. Try to avoid moving into the first line. */ - && it->current_y - target_y > line_height / 2 + && it->current_y - target_y > line_height / 3 * 2 && IT_CHARPOS (*it) > BEGV) { move_it_vertically (it, target_y - it->current_y);