From a4f4015db4c750ba8888734b01bf26d51f7df70a Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Mon, 18 May 2015 19:14:03 +0200 Subject: [PATCH] avy.el (avy--overlay-at-full): Check overlay window * avy.el (avy--overlay-at-full): Update. Re #47 --- avy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avy.el b/avy.el index c80456b..da5f537 100644 --- a/avy.el +++ b/avy.el @@ -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))