summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-02-22 08:36:51 +1100
committerMaxime Coste <mawww@kakoune.org>2020-02-22 08:39:21 +1100
commitbc8a9d82c3f028681c3f78075110bdd17326d679 (patch)
treef77bc6ae3f8517383f0a81fae17d79efe7904d69 /src/display_buffer.cc
parent3ef8a6160ddb8e5012d49a194771e8bc24d38121 (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.cc4
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;
}
}