emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master a6cfeda 23/78: avy.el (avy-goto-subword-0): Don't offer in


From: Oleh Krehel
Subject: [elpa] master a6cfeda 23/78: avy.el (avy-goto-subword-0): Don't offer invisible chars
Date: Sat, 23 Jan 2016 13:59:47 +0000

branch: master
commit a6cfedaf5eeb85bd953204463b36ee84724aaf4e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]