Function: evil-delete-yanked-rectangle
evil-delete-yanked-rectangle is a byte-compiled function defined in
evil-common.el.
Signature
(evil-delete-yanked-rectangle NROWS NCOLS)
Documentation
Special function to delete the block yanked by a previous paste command.
Supplied as the undo element of a yank handler.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-delete-yanked-rectangle (nrows ncols)
"Special function to delete the block yanked by a previous paste command.
Supplied as the `undo' element of a yank handler."
(let ((opoint (point))
(col (if (eq last-command 'evil-paste-after)
(1+ (current-column))
(current-column))))
(dotimes (_ nrows)
(delete-region (save-excursion
(move-to-column col)
(point))
(save-excursion
(move-to-column (+ col ncols))
(point)))
(unless (eobp) (forward-line)))
(goto-char opoint)))