summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
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;
}
}