aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-08-17 10:06:20 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-08-17 10:06:20 +0200
commit6d6ee27951ccf646149fd070707caecb23349125 (patch)
treed4c69fd2fe0636b1f46fec7ac03e1025c74ab5bf /lisp/mastodon-profile.el
parenta1b42fe543fbe952907c5b0a4fae71b2501d7f44 (diff)
parentd5999c7d467982845d53def10368810544dc2fa8 (diff)
Merge branch 'develop' into filters-crud
Diffstat (limited to 'lisp/mastodon-profile.el')
-rw-r--r--lisp/mastodon-profile.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 0a17a25..093e0a8 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -127,7 +127,7 @@ It contains details of the current user's account.")
"Keymap for `mastodon-profile-update-mode'.")
(persist-defvar mastodon-profile-account-settings nil
- "An alist of account settings saved from the server.
+ "An alist of account settings saved from the server.
Other clients can change these settings on the server at any
time, so this list is not the canonical source for settings. It
is updated on entering mastodon mode and on toggle any setting it
@@ -319,13 +319,13 @@ If value is :json-false, return nil."
(defun mastodon-profile--update-note-count (&rest _args)
"Display the character count of the profile note buffer."
(let* ((inhibit-read-only t)
- (header-region (mastodon-tl--find-property-range 'note-header
+ (header-region (mastodon-tl--find-property-range 'note-header
+ (point-min)))
+ (count-region (mastodon-tl--find-property-range 'note-counter
(point-min)))
- (count-region (mastodon-tl--find-property-range 'note-counter
- (point-min)))
- (count (number-to-string (mastodon-toot--count-toot-chars
- (buffer-substring-no-properties
- (cdr header-region) (point-max))))))
+ (count (number-to-string (mastodon-toot--count-toot-chars
+ (buffer-substring-no-properties
+ (cdr header-region) (point-max))))))
(add-text-properties (car count-region) (cdr count-region)
(list 'display count))))