avy-jump.el (avy-dowindows): Simplify

Re #27
This commit is contained in:
Oleh Krehel 2015-05-09 14:23:23 +02:00
parent c2e7de3a4d
commit cd8e62603f

View File

@ -127,8 +127,7 @@ When nil, punctuation chars will not be matched.
(not avy-all-windows)
avy-all-windows)))
(dolist (wnd (if avy-all-windows
(cons (selected-window)
(delete (selected-window) (window-list)))
(window-list)
(list (selected-window))))
(with-selected-window wnd
(unless (memq major-mode '(image-mode doc-view-mode))