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
This commit is contained in:
Oleh Krehel 2019-01-22 15:19:33 +01:00
parent 5b3676f1a4
commit b19a23af27

1
avy.el
View File

@ -875,6 +875,7 @@ Use OVERLAY-FN to visualize the decision overlay."
(defun avy--visible-p (s) (defun avy--visible-p (s)
(let ((invisible (get-char-property s 'invisible))) (let ((invisible (get-char-property s 'invisible)))
(or (null invisible) (or (null invisible)
(eq t buffer-invisibility-spec)
(null (assoc invisible buffer-invisibility-spec))))) (null (assoc invisible buffer-invisibility-spec)))))
(defun avy--next-visible-point () (defun avy--next-visible-point ()