diff options
| author | Justin Burkett <justin@burkett.cc> | 2017-05-21 08:31:05 -0400 |
|---|---|---|
| committer | Justin Burkett <justin@burkett.cc> | 2017-05-21 08:36:20 -0400 |
| commit | 378f7716d47cca942685d13c21818301e42fdad7 (patch) | |
| tree | cf23e6449e912be2ce0b1ab8cede5e6d02bbd292 /evil-search.el | |
| parent | 697f6a820c2e5acd66d55951192fb31b52a94ea2 (diff) | |
Fixup f005120 Fix edge case with evil-search highlighting
pattern is an object. We need to get the regex first.
See #832
Diffstat (limited to 'evil-search.el')
| -rw-r--r-- | evil-search.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/evil-search.el b/evil-search.el index a0b8041..5f00f4b 100644 --- a/evil-search.el +++ b/evil-search.el @@ -636,7 +636,8 @@ The following properties are supported: (evil-ex-search-find-next-pattern pattern) (<= (match-end 0) end) (not (and (= (match-end 0) end) - (string= pattern "^")))) + (string= (evil-ex-pattern-regex 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) |
