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 /CHANGELOG.md | |
parent | f5813899c3212d295358911635109201910b666b (diff) |
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 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a7f130a2..4da3e707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - IME window position with fullwidth characters in the search bar - Selection expanding over 2 characters when scrolled in history with fullwidth characters in use - Selection scrolling not starting when mouse is over the message bar +- Incorrect text width calculation in message bar when the message contains multibyte characters ## 0.5.0 |