aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love <[email protected]>2000-03-12 14:42:58 +0000
committerDave Love <[email protected]>2000-03-12 14:42:58 +0000
commit3cf073052908b22e49e91aef00f67b3064d08cb1 (patch)
tree9fc3823247df0bcd0f5b4f3d5e4460717f3088c8
parenta1fe6488ecfe88e7465f431edf112fe47d34e620 (diff)
(isearch-highlight): Use display-color-p.
-rw-r--r--lisp/isearch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 2682e9f0b9..0a3b0e26bd 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1699,7 +1699,7 @@ If there is no completion possible, say so and continue searching."
(defvar isearch-overlay nil)
(defun isearch-highlight (beg end)
- (if (or (null search-highlight) (null window-system))
+ (if (or (null search-highlight) (null (display-color-p)))
nil
(or isearch-overlay (setq isearch-overlay (make-overlay beg end)))
(move-overlay isearch-overlay beg end (current-buffer))