diff options
author | mousebot <mousebot@riseup.net> | 2021-11-09 11:43:01 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-11-09 11:43:01 +0100 |
commit | 4885cb1f3a564584eb90153051c0277c46f77ca4 (patch) | |
tree | 9cbe2b8f29ed523006951a93d0bb71b9e34fca8f /lisp | |
parent | b02782226b34507508020179e3100c307738eeee (diff) |
autocompletion ignores case of handles/display names
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-toot.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 885db1d..753a659 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -521,8 +521,8 @@ eg. \"feduser@fed.social\" -> \"feduser@fed.social\"." The prefix can match against both user handles and display names." (let (res) (dolist (item (mastodon-search--search-accounts-query prefix)) - (when (or (string-prefix-p prefix (cadr item)) - (string-prefix-p prefix (car item))) + (when (or (string-prefix-p prefix (cadr item) t) + (string-prefix-p prefix (car item) t)) (push (mastodon-toot--mentions-company-make-candidate item) res))) res)) |