branch: master
commit a6cfedaf5eeb85bd953204463b36ee84724aaf4e
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
avy.el (avy-goto-subword-0): Don't offer invisible chars
Fixes #90
---
avy.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
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)))))