Mercurial > emacs
diff src/xdisp.c @ 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 | 83a67b746289 |
| children | 1336e9ab5a2b |
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);
