From bf656bd333804622798577c6208c2648bf4ed353 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 5 Oct 2023 11:40:22 +0200 Subject: rear-nonsticky only for \n at end of compose header. prevents a bug where header can be edited despite read-only, and if header edited, it will be partially posted as toot text. --- lisp/mastodon-toot.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lisp') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 7478037..62a53cf 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1485,11 +1485,13 @@ REPLY-TEXT is the text of the toot being replied to." 'toot-reply t) "") divider - "\n") - 'rear-nonsticky t + ) 'face 'mastodon-toot-docs-face 'read-only "Edit your message below." - 'toot-post-header t)))) + 'toot-post-header t) + ;; allow us to enter text after read-only header: + (propertize "\n" + 'rear-nonsticky t)))) (defun mastodon-toot--most-restrictive-visibility (reply-visibility) "Return REPLY-VISIBILITY or default visibility, whichever is more restrictive. -- cgit v1.2.3