diff options
author | Gerd Moellmann <[email protected]> | 2001-03-01 19:33:02 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 2001-03-01 19:33:02 +0000 |
commit | c3c45f65ba3d99aa53796cbfe47de73bcb7b949a (patch) | |
tree | 0d8f22b575dbac7f93ae5504c80fdf401b280498 /src | |
parent | 028d739af168b1c9737a279a37743c9beb42dbcd (diff) |
(Fwindow_end): Call move_it_past_eol only if
ending up on a partially visible line.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/window.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 478786d31f..7f3285bdae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-03-01 Gerd Moellmann <[email protected]> + + * window.c (Fwindow_end): Call move_it_past_eol only if + ending up on a partially visible line. + 2001-03-01 Dave Love <[email protected]> * ccl.c (Fccl_execute): Doc fix. diff --git a/src/window.c b/src/window.c index 71e490724b..b02cc6b796 100644 --- a/src/window.c +++ b/src/window.c @@ -930,7 +930,8 @@ if it isn't already recorded.") start_display (&it, w, startp); move_it_vertically (&it, window_box_height (w)); - move_it_past_eol (&it); + if (it.current_y < it.last_visible_y) + move_it_past_eol (&it); value = make_number (IT_CHARPOS (it)); if (old_buffer) |