(move_it_vertically_backward): Use 2/3 line_height
authorGerd Moellmann <gerd@gnu.org>
Sat, 27 Oct 2001 08:55:04 +0000 (08:55 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 27 Oct 2001 08:55:04 +0000 (08:55 +0000)
instead of 1/2 line_height in the heuristic for skipping
farther backward when target_y was not reached.

src/ChangeLog
src/xdisp.c

index 23ceb15..c07d5e6 100644 (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.
index a83dd6b..e2b587e 100644 (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);