From 5c6a6815b116c07439051228840333b47dc763cf Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 11 May 2023 19:57:31 +0200 Subject: fix poll count display. --- lisp/mastodon-tl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 9920aeb..1ddc708 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1076,7 +1076,7 @@ HELP-ECHO, DISPLAY, and FACE are the text properties to add." "Format poll OPTION. OPTION-COUNTER is just a counter. LONGEST-OPTION is the option whose length determines the formatting." (format "%s: %s%s%s\n" - (setq option-counter (1+ option-counter)) + option-counter (propertize (alist-get 'title option) 'face 'success) (make-string (1+ (- (length longest-option) @@ -1097,6 +1097,7 @@ LONGEST-OPTION is the option whose length determines the formatting." (option-counter 0)) (concat "\nPoll: \n\n" (mapconcat (lambda (option) + (setq option-counter (1+ option-counter)) (mastodon-tl--format-poll-option option option-counter longest-option)) .options -- cgit v1.2.3