mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
parent
0c30cdba9e
commit
3980c03f6c
4
avy.el
4
avy.el
@ -1484,7 +1484,8 @@ The window scope is determined by `avy-all-windows' or
|
|||||||
"Select two lines and move the text between them here."
|
"Select two lines and move the text between them here."
|
||||||
(interactive)
|
(interactive)
|
||||||
(avy-with avy-move-region
|
(avy-with avy-move-region
|
||||||
(let* ((beg (avy--line))
|
(let* ((initial-window (selected-window))
|
||||||
|
(beg (avy--line))
|
||||||
(end (save-excursion
|
(end (save-excursion
|
||||||
(goto-char (avy--line))
|
(goto-char (avy--line))
|
||||||
(forward-line)
|
(forward-line)
|
||||||
@ -1493,6 +1494,7 @@ The window scope is determined by `avy-all-windows' or
|
|||||||
(pad (if (bolp) "" "\n")))
|
(pad (if (bolp) "" "\n")))
|
||||||
(move-beginning-of-line nil)
|
(move-beginning-of-line nil)
|
||||||
(delete-region beg end)
|
(delete-region beg end)
|
||||||
|
(select-window initial-window)
|
||||||
(insert text pad))))
|
(insert text pad))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user