From a6cfedaf5eeb85bd953204463b36ee84724aaf4e Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 21 Aug 2015 14:50:57 +0200 Subject: [PATCH] avy.el (avy-goto-subword-0): Don't offer invisible chars Fixes #90 --- avy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avy.el b/avy.el index 2812703..f76b86f 100644 --- a/avy.el +++ b/avy.el @@ -883,7 +883,8 @@ should return true." (while (> (point) ws) (when (or (null predicate) (and predicate (funcall predicate))) - (push (cons (point) (selected-window)) window-cands)) + (unless (get-char-property (point) 'invisible) + (push (cons (point) (selected-window)) window-cands))) (subword-backward))) (setq candidates (nconc candidates window-cands)))) (avy--process candidates (avy--style-fn avy-style)))))