abo-abo / avy

Jump to things in Emacs tree-style
1.73k stars 110 forks source link

Fix invisibility check for some cases #371

Open dvzubarev opened 10 months ago

dvzubarev commented 10 months ago

Old avy--visible-p couldn't handle properly such case: (get-char-property s 'invisible) returns t; buffer-invisibility-spec is set to ((outline . t) t)

from buffer-invisibility-spec documentation:

The list can have two kinds of elements:
ATOM and (ATOM . ELLIPSIS).
A text character is invisible if its invisible property is ATOM 

Check for invisibility was taken from the Emacs function count-lines.