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
master
Oleh Krehel 7 years ago
parent 5b3676f1a4
commit b19a23af27
  1. 1
      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 ()

Loading…
Cancel
Save