Refactor +evil/reselect-paste
This commit is contained in:
parent
3ca9d45216
commit
4acacd5c1c
1 changed files with 4 additions and 3 deletions
|
@ -22,9 +22,10 @@
|
|||
(defun +evil/reselect-paste ()
|
||||
"Go back into visual mode and reselect the last pasted region."
|
||||
(interactive)
|
||||
(evil-goto-mark ?\[)
|
||||
(evil-visual-state)
|
||||
(evil-goto-mark ?\]))
|
||||
(destructuring-bind (_ _ _ beg end) evil-last-paste
|
||||
(evil-visual-make-selection
|
||||
(save-excursion (goto-char beg) (point-marker))
|
||||
end)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +evil*ex-replace-special-filenames (file-name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue