diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-02-22 08:36:51 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-02-22 08:39:21 +1100 |
| commit | bc8a9d82c3f028681c3f78075110bdd17326d679 (patch) | |
| tree | f77bc6ae3f8517383f0a81fae17d79efe7904d69 /src/display_buffer.cc | |
| parent | 3ef8a6160ddb8e5012d49a194771e8bc24d38121 (diff) | |
Use Control Picture codepoints in prompt for all codepoints < 0x22
Fixes #3333
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc index 7df0aa1e..03a99c7b 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -325,10 +325,10 @@ String fix_atom_text(StringView str) for (auto it = str.begin(), end = str.end(); it != end; ++it) { char c = *it; - if (c == '\n' or c == '\r') + if (c <= 0x21) { res += StringView{pos, it}; - res += c == '\n' ? "" : "␍"; + res += String{Codepoint{(uint32_t)(0x2400 + c)}}; pos = it+1; } } |
