aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-05 08:34:16 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-05 08:34:16 +0200
commitcde7c92d0b0c92fe0f997a1616453287d731af59 (patch)
tree466bbb51495308203a8c4d21528206596cea35b1
parent8438af1b33930acd17e3ca1b266eaccd8b2e381b (diff)
" " for reply in compose
-rw-r--r--lisp/mastodon-toot.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 78291d0..1ee3215 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1424,8 +1424,9 @@ LONGEST is the length of the longest binding."
"Format a REPLY-TEXT for display in compose buffer docs."
(let* ((rendered (mastodon-tl--render-text reply-text))
(no-newlines (replace-regexp-in-string "\n\n" "\n" rendered))
- (crop (string-limit (concat " Reply to: " no-newlines)
- mastodon-toot-orig-in-reply-length)))
+ (crop (string-limit
+ (concat " Reply to: \"" no-newlines "\"")
+ mastodon-toot-orig-in-reply-length)))
(if (> (length no-newlines)
(length crop)) ; we cropped:
(concat crop "\n")