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

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

[elpa] master 964664c 45/78: Fix jumping to the last char of a folded Or


From: Oleh Krehel
Subject: [elpa] master 964664c 45/78: Fix jumping to the last char of a folded Org outline
Date: Sat, 23 Jan 2016 14:00:01 +0000

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

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

diff --git a/avy.el b/avy.el
index 8675a7a..f47d882 100644
--- a/avy.el
+++ b/avy.el
@@ -1140,7 +1140,7 @@ This function obeys `avy-all-windows' setting."
                       (goto-char (car pair))
                       (setq regex (regexp-quote str))
                       (while (re-search-forward regex (cdr pair) t)
-                        (unless (get-char-property (point) 'invisible)
+                        (unless (get-char-property (1- (point)) 'invisible)
                           (let ((ov (make-overlay
                                      (match-beginning 0)
                                      (match-end 0))))



reply via email to

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