]> git.eshelyaron.com Git - emacs.git/commitdiff
(isearch-intersects-p): Fix end checks.
authorGerd Moellmann <gerd@gnu.org>
Wed, 12 Sep 2001 13:10:08 +0000 (13:10 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 12 Sep 2001 13:10:08 +0000 (13:10 +0000)
lisp/ChangeLog
lisp/isearch.el

index e65b3b8233901886fd182f9c3a516b57aa1f70d4..f13d80df1baead227246aafd40fba33296487b67 100644 (file)
@@ -1,3 +1,7 @@
+2001-09-12  Gerd Moellmann  <gerd@gnu.org>
+
+       * isearch.el (isearch-intersects-p): Fix end checks.
+
 2001-09-11  Eli Zaretskii  <a34785@is.elta.co.il>
 
        * gud.el (dbx) <gud-dbx-use-stopformat-p>: Move this case into the
index a125f7ab053f566b5af46f9778642545dfddefba..2c687abee42fa8acabc8845904ceaffa7abb7305 100644 (file)
@@ -1683,10 +1683,10 @@ If there is no completion possible, say so and continue searching."
 
 (defun isearch-intersects-p (start0 end0 start1 end1)
   "Return t if regions START0..END0 and START1..END1 intersect."
-  (or (and (>= start0 start1) (< start0 end1))
-      (and (>= end0 start1)   (< end0 end1))
-      (and (>= start1 start0) (< start1 end0))
-      (and (>= end1 start0)   (< end1 end0))))
+  (or (and (>= start0 start1) (<  start0 end1))
+      (and (>  end0 start1)   (<= end0 end1))
+      (and (>= start1 start0) (<  start1 end0))
+      (and (>  end1 start0)   (<= end1 end0))))
 
 
 ;;; Verify if the current match is outside of each element of