Re: [PATCH] emacs: fix author field width with double-width chars

Subject: Re: [PATCH] emacs: fix author field width with double-width chars

Date: Sat, 28 Jun 2025 09:12:48 -0300

To: Yikai Zhao, notmuch@notmuchmail.org

Cc:

From: David Bremner


Yikai Zhao <yikai@z1k.dev> writes:

> Some non-ascii characters is double-width (e.g. CJK characters), which
> means that its `length' is not the same as `string-width' (display
> width). This commit fixes the width calculation in
> notmuch-search-insert-authors so that author field with these
> characters can be properly aligned.

Thank you for the fix. Can you also send as an attachment a small
message (possibly artificial) that displays incorrectly with the current
code and correctly with the fix?

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: