comparison src/xdisp.c @ 38835:633ee3b8d9f3

(move_it_by_lines) <DVPOS < 0>: Start at the beginning of the screen line, not text line, containing IT's current position.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 16 Aug 2001 08:40:15 +0000
parents 9c6ef0fd5c4d
children 9ea80db8a1de
comparison
equal deleted inserted replaced
38834:3b44716c4df4 38835:633ee3b8d9f3
5475 else 5475 else
5476 { 5476 {
5477 struct it it2; 5477 struct it it2;
5478 int start_charpos, i; 5478 int start_charpos, i;
5479 5479
5480 /* If we start in the middle of a line, move to the beginning 5480 /* Start at the beginning of the screen line containing IT's
5481 of that line first. */ 5481 position. */
5482 if (IT_CHARPOS (*it) > BEGV 5482 move_it_vertically_backward (it, 0);
5483 && FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n')
5484 back_to_previous_visible_line_start (it);
5485 5483
5486 /* Go back -DVPOS visible lines and reseat the iterator there. */ 5484 /* Go back -DVPOS visible lines and reseat the iterator there. */
5487 start_charpos = IT_CHARPOS (*it); 5485 start_charpos = IT_CHARPOS (*it);
5488 for (i = -dvpos; i && IT_CHARPOS (*it) > BEGV; --i) 5486 for (i = -dvpos; i && IT_CHARPOS (*it) > BEGV; --i)
5489 back_to_previous_visible_line_start (it); 5487 back_to_previous_visible_line_start (it);