branch: elpa/helm
commit dd2a70fad68ce754c7a3ab7f42ec849a42475578
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Fix imenu preselection when symbol in line
    
    contains special characters.
---
 helm-imenu.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helm-imenu.el b/helm-imenu.el
index 425d7700d2..b8f91632ba 100644
--- a/helm-imenu.el
+++ b/helm-imenu.el
@@ -320,7 +320,8 @@ The sexp should be an `all-the-icons' function with its 
args."
     (if (equal (cdr cur) mb)
         (prog1 nil
           (helm-set-pattern "")
-          (helm-force-update (concat "\\_<" (car cur) "\\_>")))
+          (helm-force-update
+           (concat "\\_<" (regexp-quote (car cur)) "\\_>")))
         t)))
 
 (defun helm-imenu-quit-and-find-file-fn (source)

Reply via email to