diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-03-27 14:56:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-03-30 14:12:17 +0000 |
| commit | 3215d54f31c9e339598a34c9fa43f3dc3c5d1e42 (patch) | |
| tree | c633800cd75161d4a4701895d9d9bafea82136da /render.c | |
| parent | fix typos (diff) | |
input: (kitty kbd): the resulting UTF-8 string may translate to multiple UTF-32 codepoints
When this happened (for example, by specifying a custom compose
sequence), the kitty keyboard protocol didn’t emit any text at all.
This was caused by the utf32 codepoint being -1. This in turned was
caused by us trying to convert the utf8 sequence to a *single* utf32
codepoint.
This patch replaces the use of mbrtoc32() with a call to
ambstoc32(), and the utf32 codepoint with an utf32 string.
The kitty keyboard protocol is updated:
* When determining if we’re dealing with text, check *all* codepoints
in the utf32 string.
* Add support for multiple codepoints when reporting "associated
text". The first codepoint is the actual parameter in the emitted
sequence, and the remaining codepoints are sub-parameters. I.e. the
codepoints are colon separated.
Closes #1288
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
