]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_frame): Move echo area cursor into range.
authorRichard M. Stallman <rms@gnu.org>
Fri, 24 Apr 1998 21:22:48 +0000 (21:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 24 Apr 1998 21:22:48 +0000 (21:22 +0000)
src/dispnew.c

index 986a19834787857548c6fb998f3662556143f38c..4b8428806f151daa2874a129108d9b1084c66c83 100644 (file)
@@ -1359,11 +1359,18 @@ update_frame (f, force, inhibit_hairy_id)
                }
              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);
                }
            }