aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-04-24 21:22:48 +0000
committerRichard M. Stallman1998-04-24 21:22:48 +0000
commit6395da5cede0b4977b4a9a61e5735bf78c1f313d (patch)
tree9258600b9341ab00e7e64154e1331e91382fad7d /src
parent4746aeeb13118a6501290f7a9b30edb701045e99 (diff)
downloademacs-6395da5cede0b4977b4a9a61e5735bf78c1f313d.tar.gz
emacs-6395da5cede0b4977b4a9a61e5735bf78c1f313d.zip
(update_frame): Move echo area cursor into range.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 986a1983478..4b8428806f1 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1359,11 +1359,18 @@ update_frame (f, force, inhibit_hairy_id)
1359 } 1359 }
1360 while (row > top && col == 0); 1360 while (row > top && col == 0);
1361 1361
1362 if (col >= FRAME_WINDOW_WIDTH (f)) 1362 /* Make sure COL is not out of range. */
1363 if (col >= FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f))
1363 { 1364 {
1364 col = 0; 1365 /* If we have another row, advance cursor into it. */
1365 if (row < FRAME_HEIGHT (f) - 1) 1366 if (row < FRAME_HEIGHT (f) - 1)
1366 row++; 1367 {
1368 col = FRAME_LEFT_SCROLL_BAR_WIDTH (f);
1369 row++;
1370 }
1371 /* Otherwise move it back in range. */
1372 else
1373 col = FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f);
1367 } 1374 }
1368 } 1375 }
1369 1376