branch: master
commit 964664c9fd6c5d1f70af42dacbd7a6dc011223f7
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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))))