emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master bae6fb1 71/78: avy.el (avy-copy-region): Keep same selecto


From: Oleh Krehel
Subject: [elpa] master bae6fb1 71/78: avy.el (avy-copy-region): Keep same selectors for the second pass
Date: Sat, 23 Jan 2016 14:00:25 +0000

branch: master
commit bae6fb15d0fcf0a91f3afa599c921480fcf680a7
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    avy.el (avy-copy-region): Keep same selectors for the second pass
    
    With `avy-all-windows' t, the call to `avy--line' would change the
    window.
    
    Fixes #121
    Fixes #120
---
 avy.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/avy.el b/avy.el
index 6d7a139..3cffb73 100644
--- a/avy.el
+++ b/avy.el
@@ -1167,7 +1167,8 @@ The window scope is determined by `avy-all-windows' or
   (interactive "P")
   (let ((initial-window (selected-window)))
     (avy-with avy-copy-region
-      (let* ((beg (avy--line arg))
+      (let* ((beg (save-selected-window
+                    (avy--line arg)))
              (end (avy--line arg))
              (str (buffer-substring-no-properties
                    beg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]