avy.el: Use next-char-property-change, not next-overlay-change

* avy.el (avy--next-visible-point):
(avy--next-invisible-point): Update.

Fixes #168
master
Oleh Krehel 10 years ago
parent a9119039ee
commit 0f5e99b5e9
  1. 4
      avy.el

@ -632,14 +632,14 @@ Use OVERLAY-FN to visualize the decision overlay."
(defun avy--next-visible-point ()
"Return the next closest point without 'invisible property."
(let ((s (point)))
(while (and (not (= (point-max) (setq s (next-overlay-change s))))
(while (and (not (= (point-max) (setq s (next-char-property-change s))))
(get-char-property s 'invisible)))
s))
(defun avy--next-invisible-point ()
"Return the next closest point with 'invisible property."
(let ((s (point)))
(while (and (not (= (point-max) (setq s (next-overlay-change s))))
(while (and (not (= (point-max) (setq s (next-char-property-change s))))
(not (get-char-property s 'invisible))))
s))

Loading…
Cancel
Save