We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac8ba91 commit 98062b1Copy full SHA for 98062b1
1 file changed
lisp/forge-post.el
@@ -307,7 +307,10 @@ Insert the value of `branch.BRANCH.description' of the source BRANCH."
307
(save-buffer)
308
(if-let ((fn forge--cancel-post-function))
309
(funcall fn forge--buffer-post-object)
310
- (magit-mode-bury-buffer 'kill)))
+ (let ((file buffer-file-name))
311
+ (magit-mode-bury-buffer 'kill)
312
+ (when (yes-or-no-p "Also delete draft? ")
313
+ (dired-delete-file file nil magit-delete-by-moving-to-trash)))))
314
315
(defclass forge--new-topic-set-slot-command (transient-lisp-variable)
316
((name :initarg :name)
0 commit comments