From e8660d735f5a043e504c7e83afdae3a2da1dd8ee Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 16 Aug 2001 08:40:36 +0000 Subject: [PATCH] (move_it_by_lines) : Start at the beginning of the screen line, not text line, containing IT's current position. --- src/ChangeLog | 6 ++++++ src/xdisp.c | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1f0ab6e89e6..ed0ecf7fd26 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2001-08-16 Gerd Moellmann + + * xdisp.c (move_it_by_lines) : Start at the beginning + of the screen line, not text line, containing IT's current + position. + 2001-08-15 Gerd Moellmann * window.c (window_scroll_pixel_based): Don't recenter if diff --git a/src/xdisp.c b/src/xdisp.c index cb54fc178f5..f5c38c52d9b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -5477,11 +5477,9 @@ move_it_by_lines (it, dvpos, need_y_p) struct it it2; int start_charpos, i; - /* If we start in the middle of a line, move to the beginning - of that line first. */ - if (IT_CHARPOS (*it) > BEGV - && FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n') - back_to_previous_visible_line_start (it); + /* Start at the beginning of the screen line containing IT's + position. */ + move_it_vertically_backward (it, 0); /* Go back -DVPOS visible lines and reseat the iterator there. */ start_charpos = IT_CHARPOS (*it); -- 2.39.5