4584 |
nlines = - XINT (arg) - 1; |
nlines = - XINT (arg) - 1; |
4585 |
move_it_by_lines (&it, nlines, 1); |
move_it_by_lines (&it, nlines, 1); |
4586 |
|
|
4587 |
y1 = it.current_y - y0; |
y1 = line_bottom_y (&it); |
|
h = line_bottom_y (&it) - y1; |
|
4588 |
|
|
4589 |
/* If we can't move down NLINES lines because we hit |
/* If we can't move down NLINES lines because we hit |
4590 |
the end of the buffer, count in some empty lines. */ |
the end of the buffer, count in some empty lines. */ |
4591 |
if (it.vpos < nlines) |
if (it.vpos < nlines) |
4592 |
y1 += (nlines - it.vpos) * CANON_Y_UNIT (it.f); |
y1 += (nlines - it.vpos) * CANON_Y_UNIT (it.f); |
4593 |
|
|
4594 |
y0 = it.last_visible_y - y1 - h; |
h = window_box_height (w) - (y1 - y0); |
4595 |
|
|
4596 |
start_display (&it, w, pt); |
start_display (&it, w, pt); |
4597 |
move_it_vertically (&it, - y0); |
move_it_vertically (&it, - h); |
4598 |
charpos = IT_CHARPOS (it); |
charpos = IT_CHARPOS (it); |
4599 |
bytepos = IT_BYTEPOS (it); |
bytepos = IT_BYTEPOS (it); |
4600 |
} |
} |