9534 |
y0 = it.current_y; |
y0 = it.current_y; |
9535 |
move_it_to (&it, PT, 0, it.last_visible_y, -1, |
move_it_to (&it, PT, 0, it.last_visible_y, -1, |
9536 |
MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y); |
MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y); |
9537 |
|
|
9538 |
/* With a scroll_margin of 0, scroll_margin_pos is at the window |
/* To make point visible, we have to move the window start |
9539 |
end, which is one line below the window. The iterator's |
down so that the line the cursor is in is visible, which |
9540 |
current_y will be same as y0 in that case, but we have to |
means we have to add in the height of the cursor line. */ |
9541 |
scroll a line to make PT visible. That's the reason why 1 is |
dy = line_bottom_y (&it) - y0; |
|
added below. */ |
|
|
dy = 1 + it.current_y - y0; |
|
9542 |
|
|
9543 |
if (dy > scroll_max) |
if (dy > scroll_max) |
9544 |
return SCROLLING_FAILED; |
return SCROLLING_FAILED; |