From 964664c9fd6c5d1f70af42dacbd7a6dc011223f7 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Thu, 22 Oct 2015 10:26:26 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) 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))))