]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fselect_window): Fix bug checking new_point is in range.
authorRichard M. Stallman <rms@gnu.org>
Thu, 14 Jul 1994 03:46:11 +0000 (03:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 14 Jul 1994 03:46:11 +0000 (03:46 +0000)
src/window.c

index 1a4a302792215041b38923edb1adb8ecf8641102..37266261c74ca55985fbeead126b1bd18b308243 100644 (file)
@@ -1729,7 +1729,7 @@ before each command.")
     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);