emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon bf656bd333 19/22: rear-nonsticky only for \n at e


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon bf656bd333 19/22: rear-nonsticky only for \n at end of compose header.
Date: Thu, 5 Oct 2023 07:00:55 -0400 (EDT)

branch: elpa/mastodon
commit bf656bd333804622798577c6208c2648bf4ed353
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>

    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(-)

diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 747803749a..62a53cf8e5 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]