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

    Fix jumping to the last char of a folded Org outline
    
    avy.el (avy--regex-candidates): For the last char in the outline,
    (get-char-property (point) 'invisible) returns t, although it's still
    visible.
    
    Re #108
---
 avy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/avy.el b/avy.el
index 28a07f4..ae0f22b 100644
--- a/avy.el
+++ b/avy.el
@@ -589,7 +589,7 @@ When GROUP is non-nil, (BEG . END) should delimit that 
regex group."
         (save-excursion
           (goto-char (car pair))
           (while (re-search-forward regex (cdr pair) t)
-            (unless (get-char-property (point) 'invisible)
+            (unless (get-char-property (1- (point)) 'invisible)
               (when (or (null pred)
                         (funcall pred))
                 (push (cons (cons (match-beginning group)

Reply via email to