9485 |
y0 = it.current_y; |
y0 = it.current_y; |
9486 |
move_it_to (&it, PT, 0, it.last_visible_y, -1, |
move_it_to (&it, PT, 0, it.last_visible_y, -1, |
9487 |
MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y); |
MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y); |
9488 |
|
|
9489 |
/* With a scroll_margin of 0, scroll_margin_pos is at the window |
/* To make point visible, we have to move the window start |
9490 |
end, which is one line below the window. The iterator's |
down so that the line the cursor is in is visible, which |
9491 |
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. */ |
9492 |
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; |
|
9493 |
|
|
9494 |
if (dy > scroll_max) |
if (dy > scroll_max) |
9495 |
return SCROLLING_FAILED; |
return SCROLLING_FAILED; |