diff options
author | Alessandro Menezes <alessandroasm@gmail.com> | 2020-10-03 23:17:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 03:17:36 +0000 |
commit | 44a6dba0af03d3b9305ceea31c3289709cc750e3 (patch) | |
tree | a351056c5e03bb4e598db56c4b8a9e94b6065edd /Cargo.lock | |
parent | f5813899c3212d295358911635109201910b666b (diff) | |
download | alacritty-44a6dba0af03d3b9305ceea31c3289709cc750e3.tar.gz alacritty-44a6dba0af03d3b9305ceea31c3289709cc750e3.zip |
Fix non-ascii message bar text width calculation
When formatting text for display in the message bar, Alacritty was using
the byte length of the text instead of the glyph count. This lead to
unnecessary blank space at the end of lines due to overestimation of
their length.
There also were no extra spaces inserted after fullwidth characters,
leading to Alacritty giving them only a single cell of space. In line
with the rest of Alacritty's rendering, a wide char spacer whitespace is
now inserted in the message bar after glyphs which should occupy two
cells.
Fixes #4250.
Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions