diff options
| author | Miles Bader | 2000-12-08 18:56:35 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-12-08 18:56:35 +0000 |
| commit | 163784df97c4b76ad15a4787908fdeff2af226cd (patch) | |
| tree | 06151b43c3c257ca67bff9f4112009e53e120bba /src/window.c | |
| parent | df0677c3652fe587290d7c4b80798a9222923cbb (diff) | |
| download | emacs-163784df97c4b76ad15a4787908fdeff2af226cd.tar.gz emacs-163784df97c4b76ad15a4787908fdeff2af226cd.zip | |
(Fmove_to_window_line): Skip past any partially visible first line.
Diffstat (limited to 'src/window.c')
| -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 | ||