aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-01 13:27:53 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-01 13:27:53 +0200
commitaa982db0c5bc6e9e02a79ada9089cc78199789b9 (patch)
treeeedfc1d935a317027a53b6cbf3510f094d4245cd /lisp/mastodon-toot.el
parenta41c716456f5a8b4793646f453c81959cf9db0fe (diff)
add edit toot to compose-buffer-p
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 9aee54e..a1e6ed3 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1609,7 +1609,8 @@ Added to `after-change-functions'."
(defun mastodon-toot--compose-buffer-p ()
"Return t if compose buffer is current."
- (mastodon-tl--buffer-type-eq 'new-toot))
+ (or (mastodon-tl--buffer-type-eq 'edit-toot)
+ (mastodon-tl--buffer-type-eq 'new-toot)))
;; NB: now that we have toot drafts, to ensure offline composing remains
;; possible, avoid any direct requests here: