diff src/window.c @ 8245:b743577d12c2

(Fselect_window): Fix bug checking new_point is in range.
author Richard M. Stallman <rms@gnu.org>
date Thu, 14 Jul 1994 03:46:11 +0000
parents 09b630d545fe
children bae811318a57
line wrap: on
line diff
--- a/src/window.c	Thu Jul 14 03:44:29 1994 +0000
+++ b/src/window.c	Thu Jul 14 03:46:11 1994 +0000
@@ -1729,7 +1729,7 @@
     register int new_point = marker_position (w->pointm);
     if (new_point < BEGV)
       SET_PT (BEGV);
-    if (new_point > ZV)
+    else if (new_point > ZV)
       SET_PT (ZV);
     else
       SET_PT (new_point);