summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-08-17 20:40:30 +1000
committerMaxime Coste <mawww@kakoune.org>2021-08-17 20:40:30 +1000
commit7187784936edc640d547ad497ef9b644a2483a2e (patch)
treea75399641deeb7c698533bda1c9eb61e2ce05c6a /src/display_buffer.cc
parent94388dc51e22770e1a9a79ad310cc3c78443ef36 (diff)
Move control character escaping responsibility to the terminal UI
Fix atom text at display time, allow tabs/eol/etc... in display atoms and escape them just-in-time Fixes #4293
Diffstat (limited to 'src/display_buffer.cc')
-rw-r--r--src/display_buffer.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc
index b7564550..e7caed04 100644
--- a/src/display_buffer.cc
+++ b/src/display_buffer.cc
@@ -332,22 +332,4 @@ DisplayLine parse_display_line(StringView line, const FaceRegistry& faces, const
return res;
}
-String fix_atom_text(StringView str)
-{
- String res;
- auto pos = str.begin();
- for (auto it = str.begin(), end = str.end(); it != end; ++it)
- {
- char c = *it;
- if (c >= 0 and c <= 0x1F)
- {
- res += StringView{pos, it};
- res += String{Codepoint{(uint32_t)(0x2400 + c)}};
- pos = it+1;
- }
- }
- res += StringView{pos, str.end()};
- return res;
-}
-
}