branch: elpa/anzu
commit 1f7ac2619163d20e99e324212100bd2c845ecd8c
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>

    Just call isearch-symbol-regexp instead of constructing own regexp
---
 anzu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/anzu.el b/anzu.el
index 924a3fb430..e44f4ce221 100644
--- a/anzu.el
+++ b/anzu.el
@@ -153,7 +153,7 @@
 
 (defun anzu--transform-input (str)
   (cond ((eq isearch-word 'isearch-symbol-regexp)
-         (setq str (concat "\\_<" str "\\_>")))
+         (setq str (isearch-symbol-regexp str)))
         ((anzu--word-search-p)
          (setq str (regexp-quote str)))
         (t str)))

Reply via email to