changeset 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 15d4c2bd29e6
children d48c2b01fba5
files src/window.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);