Skip to content

Commit

Permalink
Remove setting of small delete register in evil-delete
Browse files Browse the repository at this point in the history
The setting of registers is now handled by the eventual call to
`evil-kill-new` when calling `evil-yank`.
  • Loading branch information
nnicandro committed May 17, 2024
1 parent a82a352 commit ad7bd8f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions evil-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -1482,11 +1482,6 @@ See `evil-kill-new' for more details on how text is saved."
(setq beg (car new-range)
end (cadr new-range)
type 'line)))
(unless register
(let ((text (filter-buffer-substring beg end)))
(unless (string-match-p "\n" text)
;; set the small delete register
(evil-set-register ?- text))))
(let ((this-command 'evil-delete))
(evil-yank beg end type register yank-handler))
(cond
Expand Down

0 comments on commit ad7bd8f

Please sign in to comment.