From a4e9c17cd4ee376d00f1c28ad760a599e3dd1595 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 4 May 2023 20:29:52 +0200 Subject: in prop tags and handles: handle variable-pitch for reset props --- lisp/mastodon-toot.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lisp/mastodon-toot.el') 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 -- cgit v1.2.3