diff options
author | Pinghao Wu <xdavidwuph@gmail.com> | 2022-07-27 20:08:03 +0800 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-30 17:58:26 +0200 |
commit | b8ef8d2628e2b307864aee1f61ab4036d0473b33 (patch) | |
tree | b29ffeb2d13f53ddd0adb1c3bc3e615e20f84440 /commands/new-account.go | |
parent | 3304ea18bac8e5faae383c1dfc16f6f910e2c53e (diff) | |
download | aerc-b8ef8d2628e2b307864aee1f61ab4036d0473b33.tar.gz |
index: workaround for wide character printing
This is a workaround for https://todo.sr.ht/~rjarry/aerc/22, by
injecting zero-width spaces in front of wide characters to make up width
calculation in fmt.Sprintf.
With this applied, columns will still be misaligned a little only if
they are left with trailing zero-width spaces when cut. It is better
than a large offset caused by each wide characters in the column.
References: https://todo.sr.ht/~rjarry/aerc/22
Signed-off-by: Pinghao Wu <xdavidwuph@gmail.com>
Acked-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'commands/new-account.go')
0 files changed, 0 insertions, 0 deletions