avy.el (avy--overlay-at-full): Check overlay window

* avy.el (avy--overlay-at-full): Update.

Re #47
This commit is contained in:
Oleh Krehel 2015-05-18 19:14:03 +02:00
parent 92a7884d9c
commit a4f4015db4

3
avy.el
View File

@ -460,7 +460,8 @@ LEAF is normally ((BEG . END) . WND)."
(save-excursion
(goto-char beg)
(when (cl-some (lambda (o)
(eq (overlay-get o 'category) 'avy))
(and (eq (overlay-get o 'category) 'avy)
(eq (overlay-get o 'window) wnd)))
(overlays-in (point) (min (+ (point) len)
(line-end-position))))
(setq str (substring str 0 1))