aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c11
2 files changed, 11 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6814ea02fbf..83e83509c4d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12000-12-20 Gerd Moellmann <gerd@gnu.org> 12000-12-20 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xdisp.c (try_cursor_movement): Fix last change. The real
4 condition is that PT is at the end of the row, and should
5 be displayed at the start of the next row.
6
3 * xdisp.c (try_cursor_movement): If we end on a partially 7 * xdisp.c (try_cursor_movement): If we end on a partially
4 visible line, end we already decided to scroll, return -1. 8 visible line, end we already decided to scroll, return -1.
5 9
diff --git a/src/xdisp.c b/src/xdisp.c
index 8a9e063ce1c..e72ca02e6e6 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -9332,13 +9332,16 @@ try_cursor_movement (window, startp, scroll_step)
9332 } 9332 }
9333 else if (MATRIX_ROW_PARTIALLY_VISIBLE_P (row)) 9333 else if (MATRIX_ROW_PARTIALLY_VISIBLE_P (row))
9334 { 9334 {
9335 /* If we end up in a partially visible line, let's make it 9335 if (PT == MATRIX_ROW_END_CHARPOS (row)
9336 fully visible, except when it's taller than the window, 9336 && !row->ends_at_zv_p
9337 in which case we can't do much about it. */ 9337 && !MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (row))
9338 if (scroll_p)
9339 rc = -1; 9338 rc = -1;
9340 else if (row->height > window_box_height (w)) 9339 else if (row->height > window_box_height (w))
9341 { 9340 {
9341 /* If we end up in a partially visible line, let's
9342 make it fully visible, except when it's taller
9343 than the window, in which case we can't do much
9344 about it. */
9342 *scroll_step = 1; 9345 *scroll_step = 1;
9343 rc = -1; 9346 rc = -1;
9344 } 9347 }