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

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

[elpa] master f7ddd4b 39/78: Fix jumping to the last char of a folded Or


From: Oleh Krehel
Subject: [elpa] master f7ddd4b 39/78: Fix jumping to the last char of a folded Org outline
Date: Sat, 23 Jan 2016 13:59:57 +0000

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

    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

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