branch: elpa/fedi
commit 474b0ea05254b914baf2ced358c3df6ce47f800a
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
fedi-post--kill: use (quit-window 'kill) to avoid errors
---
fedi-post.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fedi-post.el b/fedi-post.el
index c4297d41ba3..f5e24293632 100644
--- a/fedi-post.el
+++ b/fedi-post.el
@@ -167,7 +167,8 @@ CANCEL means the post was not sent, so we save the post
text as a draft."
fedi-post-draft-posts-list :test 'equal)))
;; prevent some weird bug when cancelling a non-empty post:
;; (delete #'fedi-post--save-post-text after-change-functions)
- (kill-buffer-and-window)
+ ;; (kill-buffer-and-window)
+ (quit-window 'kill)
(fedi-post--restore-previous-window-config prev-window-config)))
(defun fedi-post-cancel ()