From: Chris Hanson Date: Thu, 10 Aug 1989 05:07:43 +0000 (+0000) Subject: (inferior-containing-coordinates): the maximum addressable coordinate X-Git-Tag: 20090517-FFI~11855 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=6a7dc14724f731b07cf059edabeeb7233aeab537;p=mit-scheme.git (inferior-containing-coordinates): the maximum addressable coordinate of a window is one less than the size of the window. --- diff --git a/v7/src/edwin/window.scm b/v7/src/edwin/window.scm index a483dd3ee..380e288b5 100644 --- a/v7/src/edwin/window.scm +++ b/v7/src/edwin/window.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/window.scm,v 1.148 1989/06/21 10:37:45 cph Rel $ +;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/window.scm,v 1.149 1989/08/10 05:07:43 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989 Massachusetts Institute of Technology ;;; @@ -378,9 +378,10 @@ (let ((x (- x x-start)) (y (- y y-start))) (if (and (not (negative? x)) - (<= x (inferior-x-size inferior)) + (< x (inferior-x-size inferior)) (not (negative? y)) - (<= y (inferior-y-size inferior))) (search (inferior-window inferior) x y) + (< y (inferior-y-size inferior))) + (search (inferior-window inferior) x y) (loop (cdr inferiors)))) (loop (cdr inferiors))))))))))