diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index 3467be7edda..223ef072386 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4482,12 +4482,7 @@ displayed_window_lines (w) | |||
| 4482 | int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f); | 4482 | int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f); |
| 4483 | it.vpos += lines; | 4483 | it.vpos += lines; |
| 4484 | } | 4484 | } |
| 4485 | #if 0 | 4485 | |
| 4486 | else if (it.current_y < height && bottom_y > height) | ||
| 4487 | /* Partially visible line at the bottom. */ | ||
| 4488 | ++it.vpos; | ||
| 4489 | #endif | ||
| 4490 | |||
| 4491 | return it.vpos; | 4486 | return it.vpos; |
| 4492 | } | 4487 | } |
| 4493 | 4488 | ||
| @@ -4529,6 +4524,10 @@ zero means top of window, negative means relative to bottom of window.") | |||
| 4529 | XSETINT (arg, XINT (arg) + lines); | 4524 | XSETINT (arg, XINT (arg) + lines); |
| 4530 | } | 4525 | } |
| 4531 | 4526 | ||
| 4527 | if (w->vscroll) | ||
| 4528 | /* Skip past a partially visible first line. */ | ||
| 4529 | XSETINT (arg, XINT (arg) + 1); | ||
| 4530 | |||
| 4532 | return Fvertical_motion (arg, window); | 4531 | return Fvertical_motion (arg, window); |
| 4533 | } | 4532 | } |
| 4534 | 4533 | ||