1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

(isearch-highlight): Use display-color-p.

This commit is contained in:
Dave Love 2000-03-12 14:42:58 +00:00
parent a1fe6488ec
commit 3cf0730529

View File

@ -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))