changeset 21757:629f6df4a329

(update_frame): Move echo area cursor into range.
author Richard M. Stallman <rms@gnu.org>
date Fri, 24 Apr 1998 21:22:48 +0000
parents ed07a8592f60
children bc7f520d8251
files src/dispnew.c
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Fri Apr 24 21:17:17 1998 +0000
+++ b/src/dispnew.c	Fri Apr 24 21:22:48 1998 +0000
@@ -1359,11 +1359,18 @@
 		}
 	      while (row > top && col == 0);
 
-	      if (col >= FRAME_WINDOW_WIDTH (f))
+	      /* Make sure COL is not out of range.  */
+	      if (col >= FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f))
 		{
-		  col = 0;
+		  /* If we have another row, advance cursor into it.  */
 		  if (row < FRAME_HEIGHT (f) - 1)
-		    row++;
+		    {
+		      col = FRAME_LEFT_SCROLL_BAR_WIDTH (f);
+		      row++;
+		    }
+		  /* Otherwise move it back in range.  */
+		  else
+		    col = FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f);
 		}
 	    }