diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-05-04 20:29:52 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-05-04 20:29:52 +0200 |
commit | a4e9c17cd4ee376d00f1c28ad760a599e3dd1595 (patch) | |
tree | 11e3b7d588865db38093b2001a945210feede5df /lisp/mastodon-toot.el | |
parent | 067270e5a9630817335dbdb28760324953597d1d (diff) |
in prop tags and handles: handle variable-pitch for reset props
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 22f001d..73b9f1a 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1638,10 +1638,12 @@ Added to `after-change-functions'." (when (mastodon-toot--compose-buffer-p) (let ((header-region (mastodon-tl--find-property-range 'toot-post-header - (point-min)))) + (point-min))) + (face (when mastodon-toot--proportional-fonts-compose + 'variable-pitch))) ;; cull any prev props: ;; stops all text after a handle or mention being propertized: - (set-text-properties (cdr header-region) (point-max) nil) + (set-text-properties (cdr header-region) (point-max) `(face ,face)) ;; TODO: confirm allowed hashtag/handle characters: (mastodon-toot--propertize-item mastodon-toot-tag-regex 'success |