diff options
| -rw-r--r-- | evil-search.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/evil-search.el b/evil-search.el index 79090d1..49dadbd 100644 --- a/evil-search.el +++ b/evil-search.el @@ -634,7 +634,9 @@ The following properties are supported: ;; reusing old overlays (if possible) (while (and (not (eobp)) (evil-ex-search-find-next-pattern pattern) - (<= (match-end 0) end)) + (<= (match-end 0) end) + (not (and (= (match-end 0) end) + (string= pattern "^")))) (let ((ov (or (pop old-ovs) (make-overlay 0 0)))) (move-overlay ov (match-beginning 0) (match-end 0)) (overlay-put ov 'face face) |
