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:
parent
a1fe6488ec
commit
3cf0730529
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user