Fix #4103: respect delete-by-moving-to-trash
When calling doom/delete-this-file
This commit is contained in:
parent
8ba2b9eafa
commit
b6fe731153
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ If FORCE-P, delete without confirmation."
|
|||
(user-error "Aborted"))
|
||||
(let ((buf (current-buffer)))
|
||||
(unwind-protect
|
||||
(progn (delete-file path) t)
|
||||
(progn (delete-file path t) t)
|
||||
(if (file-exists-p path)
|
||||
(error "Failed to delete %S" short-path)
|
||||
;; Ensures that windows displaying this buffer will be switched to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue