diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-03-03 20:16:14 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-03-03 20:16:31 +1100 |
| commit | e3a5856284f358a4d26f49916af77b30a2d44512 (patch) | |
| tree | 55bb1af07b5424ad628c315e6a952e95025853c4 /src/display_buffer.cc | |
| parent | f682d8c01f9121c608c4837a1a57e2461bfc61ec (diff) | |
Only replace chars >= 0 in fix_atom_text
If char is signed, the test was invalid
Fixes #3389
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc index d9ff4778..d5fc8275 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -325,7 +325,7 @@ String fix_atom_text(StringView str) for (auto it = str.begin(), end = str.end(); it != end; ++it) { char c = *it; - if (c <= 0x1F) + if (c >= 0 and c <= 0x1F) { res += StringView{pos, it}; res += String{Codepoint{(uint32_t)(0x2400 + c)}}; |
