aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-05 11:17:56 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-05 11:17:56 -0200
commit85b4e56d60aaa3420616572c444d6152ed180944 (patch)
tree96df6491a18589111b8a256892920a2cc9ab2bfd
parentae0fc9a35f3eef1518d1486682962045d82b2a76 (diff)
HOTFIX After composing, don't error if only window
-rw-r--r--sx-compose.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-compose.el b/sx-compose.el
index f4fcd0a..8a6edc3 100644
--- a/sx-compose.el
+++ b/sx-compose.el
@@ -128,7 +128,7 @@ contents to the API, then calls `sx-compose-after-send-functions'."
(when (buffer-live-p buffer)
(let ((w (get-buffer-window buffer)))
(when (window-live-p w)
- (delete-window w)))
+ (ignore-errors (delete-window w))))
(kill-buffer buffer)))
(defun sx-compose--copy-as-kill (buffer _)