branch: master
commit ca92a08d27e9650714262afa44bd891d8fe8fc02
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    avy-jump.el (avi-goto-word-1): Count some syms as words
    
    * avy-jump.el (avi-goto-word-1): Update.
    
    Fixes #38
---
 avy-jump.el |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/avy-jump.el b/avy-jump.el
index 9a39880..c1c03ab 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -247,10 +247,13 @@ When ARG is non-nil, flip the window scope."
   "Jump to a word start in current window.
 Read one char with which the word should start."
   (interactive)
-  (let ((candidates (avi--regex-candidates
-                     (concat
-                      "\\b"
-                      (string (read-char "char: "))))))
+  (let* ((str (string (read-char "char: ")))
+         (candidates (avi--regex-candidates
+                      (if (string-match "[,.+-*/=]" str)
+                          str
+                        (concat
+                         "\\b"
+                         str)))))
     (avi--goto
      (avi--process candidates #'avi--overlay-pre))))
 

Reply via email to