From 798dbe1fc86e34dbf9d5c57c856f186ab4a3eb70 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 27 Oct 2001 08:55:04 +0000 Subject: [PATCH] (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. --- src/ChangeLog | 4 ++++ src/xdisp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 23ceb1509ca..c07d5e673e0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2001-10-27 Gerd Moellmann + * xdisp.c (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. + * sound.c (sound_perror): Unblock SIGIO, turn on atimers. Display errno only if non-zero. (sound_warning): New function. diff --git a/src/xdisp.c b/src/xdisp.c index a83dd6bd20c..e2b587e08d0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -5377,7 +5377,7 @@ move_it_vertically_backward (it, dy) 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); -- 2.39.5