4653 |
move_it_vertically (&it, height); |
move_it_vertically (&it, height); |
4654 |
bottom_y = line_bottom_y (&it); |
bottom_y = line_bottom_y (&it); |
4655 |
|
|
4656 |
|
/* rms: On a non-window display, |
4657 |
|
the value of it.vpos at the bottom of the screen |
4658 |
|
seems to be 1 larger than window_box_height (w). |
4659 |
|
This kludge fixes a bug whereby (move-to-window-line -1) |
4660 |
|
when ZV is on the last screen line |
4661 |
|
moves to the previous screen line instead of the last one. */ |
4662 |
|
if (! FRAME_WINDOW_P (XFRAME (w->frame))) |
4663 |
|
height++; |
4664 |
|
|
4665 |
/* Add in empty lines at the bottom of the window. */ |
/* Add in empty lines at the bottom of the window. */ |
4666 |
if (bottom_y < height) |
if (bottom_y < height) |
4667 |
{ |
{ |