From f7ddd4b68796aba2cc736f7c028fd16e814ab803 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Mon, 19 Oct 2015 16:11:40 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) 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)