branch: master
commit e9310715e4a1f7646a54b8a700792e6b4ddde042
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
When selecting from many windows, prioritize the current
* avy-jump.el (avy-dowindows): Update.
Fixes #14
---
avy-jump.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index 444b27a..eca101e 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -70,7 +70,8 @@
(not avy-all-windows)
avy-all-windows)))
(dolist (wnd (if avy-all-windows
- (window-list)
+ (cons (selected-window)
+ (delete (selected-window) (window-list)))
(list (selected-window))))
(with-selected-window wnd
(unless (memq major-mode '(image-mode doc-view-mode))