From ca92a08d27e9650714262afa44bd891d8fe8fc02 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Tue, 5 May 2015 14:38:11 +0200 Subject: [PATCH] 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 file 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))))