diff options
| author | Gerd Moellmann | 2000-12-20 14:10:20 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-12-20 14:10:20 +0000 |
| commit | 3f7e303108f27e6620a5246aba6858011f4a24e0 (patch) | |
| tree | 0cb3c7c674be26ad9216acbbf22980b4d5819085 /src | |
| parent | c9f00270df3859ee0dfee5cee77896d1f8f8586b (diff) | |
| download | emacs-3f7e303108f27e6620a5246aba6858011f4a24e0.tar.gz emacs-3f7e303108f27e6620a5246aba6858011f4a24e0.zip | |
(try_cursor_movement): If we end on a partially
visible line, end we already decided to scroll, return -1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 54520308f72..6814ea02fbf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2000-12-20 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-12-20 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (try_cursor_movement): If we end on a partially | ||
| 4 | visible line, end we already decided to scroll, return -1. | ||
| 5 | |||
| 3 | * dispextern.h (ensure_frame_matrix): Add prototype. | 6 | * dispextern.h (ensure_frame_matrix): Add prototype. |
| 4 | 7 | ||
| 5 | * window.c (delete_window, Fsplit_window) | 8 | * window.c (delete_window, Fsplit_window) |
diff --git a/src/xdisp.c b/src/xdisp.c index 7fc606fed81..8a9e063ce1c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9250,7 +9250,6 @@ try_cursor_movement (window, startp, scroll_step) | |||
| 9250 | int scroll_p = 0; | 9250 | int scroll_p = 0; |
| 9251 | int last_y = window_text_bottom_y (w) - this_scroll_margin; | 9251 | int last_y = window_text_bottom_y (w) - this_scroll_margin; |
| 9252 | 9252 | ||
| 9253 | |||
| 9254 | if (PT > XFASTINT (w->last_point)) | 9253 | if (PT > XFASTINT (w->last_point)) |
| 9255 | { | 9254 | { |
| 9256 | /* Point has moved forward. */ | 9255 | /* Point has moved forward. */ |
| @@ -9336,7 +9335,9 @@ try_cursor_movement (window, startp, scroll_step) | |||
| 9336 | /* If we end up in a partially visible line, let's make it | 9335 | /* If we end up in a partially visible line, let's make it |
| 9337 | fully visible, except when it's taller than the window, | 9336 | fully visible, except when it's taller than the window, |
| 9338 | in which case we can't do much about it. */ | 9337 | in which case we can't do much about it. */ |
| 9339 | if (row->height > window_box_height (w)) | 9338 | if (scroll_p) |
| 9339 | rc = -1; | ||
| 9340 | else if (row->height > window_box_height (w)) | ||
| 9340 | { | 9341 | { |
| 9341 | *scroll_step = 1; | 9342 | *scroll_step = 1; |
| 9342 | rc = -1; | 9343 | rc = -1; |