Skip to content

Commit

Permalink
Merge pull request #9 from jotare/fix-rectangular-region-kill
Browse files Browse the repository at this point in the history
fix: use `kill-region` over `delete-region` (rectangular region deletes, kill-ring)
  • Loading branch information
hrehfeld committed May 16, 2022
2 parents 78acd1f + 6abf262 commit f21bd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart-hungry-delete.el
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ With PREFIX just delete one char."
fallback 'delete-char)
)
(if (region-active-p)
(delete-region (region-beginning) (region-end))
(kill-region (region-beginning) (region-end) t)
(if (funcall check smart-hungry-delete-char-kill-regexp)
(let* ((start (funcall kill-end-match 0))
(kill-start (if (smart-hungry-delete-char-trigger start (point))
Expand Down

0 comments on commit f21bd1b

Please sign in to comment.