(move_it_by_lines) <DVPOS < 0>: Start at the beginning

of the screen line, not text line, containing IT's current
position.
This commit is contained in:
Gerd Moellmann 2001-08-16 08:40:36 +00:00
parent 1369261b86
commit e8660d735f
2 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2001-08-16 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
of the screen line, not text line, containing IT's current
position.
2001-08-15 Gerd Moellmann <gerd@gnu.org>
* window.c (window_scroll_pixel_based): Don't recenter if

View file

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