From ad7bd8f3afd9286f0fa09c3fda1e0ec51bd665e4 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Fri, 10 May 2024 13:14:50 -0500 Subject: [PATCH] Remove setting of small delete register in `evil-delete` The setting of registers is now handled by the eventual call to `evil-kill-new` when calling `evil-yank`. --- evil-commands.el | 5 ----- 1 file changed, 5 deletions(-) diff --git a/evil-commands.el b/evil-commands.el index bcdaab85..f86b246f 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -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