From b19a23af27a0454bcaffb266e5d5e3465be88e98 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Tue, 22 Jan 2019 15:19:33 +0100 Subject: [PATCH] avy.el (avy--visible-p): buffer-invisibility-spec can be t In that case, according to the doc if (get-char-property s 'invisible) is non-nil, it's invisible. Fixes #264 Re #261 --- avy.el | 1 + 1 file changed, 1 insertion(+) diff --git a/avy.el b/avy.el index 7d949ea..630f3ab 100644 --- a/avy.el +++ b/avy.el @@ -875,6 +875,7 @@ Use OVERLAY-FN to visualize the decision overlay." (defun avy--visible-p (s) (let ((invisible (get-char-property s 'invisible))) (or (null invisible) + (eq t buffer-invisibility-spec) (null (assoc invisible buffer-invisibility-spec))))) (defun avy--next-visible-point ()