summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-03-12 14:42:58 +0000
committerDave Love <fx@gnu.org>2000-03-12 14:42:58 +0000
commit3cf073052908b22e49e91aef00f67b3064d08cb1 (patch)
tree9fc3823247df0bcd0f5b4f3d5e4460717f3088c8 /lisp
parenta1fe6488ecfe88e7465f431edf112fe47d34e620 (diff)
downloademacs-3cf073052908b22e49e91aef00f67b3064d08cb1.tar.gz
emacs-3cf073052908b22e49e91aef00f67b3064d08cb1.tar.bz2
emacs-3cf073052908b22e49e91aef00f67b3064d08cb1.zip
(isearch-highlight): Use display-color-p.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/isearch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 2682e9f0b9e..0a3b0e26bdb 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))