Commit 9bb3de4b authored by Juri Linkov's avatar Juri Linkov
Browse files


Change overlay priority from 1 to 1001.  Reuse existing overlay.
parent a46961de
......@@ -2307,11 +2307,13 @@ otherwise it is displayed normally.
The variable `ispell-highlight-face' selects the face to use for highlighting."
(if highlight
(if ispell-overlay
(move-overlay ispell-overlay start end (current-buffer))
(setq ispell-overlay (make-overlay start end))
(overlay-put ispell-overlay 'priority 1) ;higher than lazy overlays
(overlay-put ispell-overlay 'priority 1001) ;higher than lazy overlays
(overlay-put ispell-overlay 'face ispell-highlight-face))
(delete-overlay ispell-overlay))
(if ispell-overlay
(delete-overlay ispell-overlay)))
(if (and ispell-lazy-highlight (boundp 'lazy-highlight-cleanup))
(if highlight
(let ((isearch-string
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment