changeset 34743:c105f9abf6b5

(try_cursor_movement): Fix last change. The real condition is that PT is at the end of the row, and should be displayed at the start of the next row.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 20 Dec 2000 14:24:47 +0000
parents b7aea0676128
children 5f14759be2d0
files src/xdisp.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Wed Dec 20 14:23:38 2000 +0000
+++ b/src/xdisp.c	Wed Dec 20 14:24:47 2000 +0000
@@ -9332,13 +9332,16 @@
 	    }
 	  else if (MATRIX_ROW_PARTIALLY_VISIBLE_P (row))
 	    {
-	      /* If we end up in a partially visible line, let's make it
-		 fully visible, except when it's taller than the window,
-		 in which case we can't do much about it.  */
-	      if (scroll_p)
+	      if (PT == MATRIX_ROW_END_CHARPOS (row)
+		  && !row->ends_at_zv_p
+		  && !MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (row))
 		rc = -1;
 	      else if (row->height > window_box_height (w))
 		{
+		  /* If we end up in a partially visible line, let's
+		     make it fully visible, except when it's taller
+		     than the window, in which case we can't do much
+		     about it.  */
 		  *scroll_step = 1;
 		  rc = -1;
 		}