1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-28 02:40:46 -08:00

(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.
This commit is contained in:
Gerd Moellmann 2001-10-27 08:55:04 +00:00
parent 62725a9205
commit 798dbe1fc8
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2001-10-27 Gerd Moellmann <gerd@gnu.org>
* 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.

View file

@ -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);