mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
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
This commit is contained in:
parent
9d18bf9fc2
commit
bae6fb15d0
3
avy.el
3
avy.el
@ -1167,7 +1167,8 @@ The window scope is determined by `avy-all-windows' or
|
|||||||
(interactive "P")
|
(interactive "P")
|
||||||
(let ((initial-window (selected-window)))
|
(let ((initial-window (selected-window)))
|
||||||
(avy-with avy-copy-region
|
(avy-with avy-copy-region
|
||||||
(let* ((beg (avy--line arg))
|
(let* ((beg (save-selected-window
|
||||||
|
(avy--line arg)))
|
||||||
(end (avy--line arg))
|
(end (avy--line arg))
|
||||||
(str (buffer-substring-no-properties
|
(str (buffer-substring-no-properties
|
||||||
beg
|
beg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user