mirror of
https://github.com/abo-abo/avy.git
synced 2026-02-04 06:42:26 +00:00
4
avy.el
4
avy.el
@@ -1484,7 +1484,8 @@ The window scope is determined by `avy-all-windows' or
|
||||
;;;###autoload
|
||||
(defun avy-move-region ()
|
||||
"Select two lines and move the text between them here."
|
||||
(interactive)
|
||||
(interactive)
|
||||
(avy-with avy-move-region
|
||||
(let* ((initial-window (selected-window))
|
||||
(beg (avy--line))
|
||||
(end (save-excursion
|
||||
@@ -1493,6 +1494,7 @@ The window scope is determined by `avy-all-windows' or
|
||||
(point)))
|
||||
(text (buffer-substring beg end))
|
||||
(pad (if (bolp) "" "\n")))
|
||||
(move-beginning-of-line nil)
|
||||
(delete-region beg end)
|
||||
(select-window initial-window)
|
||||
(insert text pad))))
|
||||
|
||||
Reference in New Issue
Block a user