mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-27 02:23:26 +03:00
Use Control Picture codepoints in prompt for all codepoints < 0x22
Fixes #3333
This commit is contained in:
parent
3ef8a6160d
commit
bc8a9d82c3
@ -325,10 +325,10 @@ String fix_atom_text(StringView str)
|
|||||||
for (auto it = str.begin(), end = str.end(); it != end; ++it)
|
for (auto it = str.begin(), end = str.end(); it != end; ++it)
|
||||||
{
|
{
|
||||||
char c = *it;
|
char c = *it;
|
||||||
if (c == '\n' or c == '\r')
|
if (c <= 0x21)
|
||||||
{
|
{
|
||||||
res += StringView{pos, it};
|
res += StringView{pos, it};
|
||||||
res += c == '\n' ? "" : "␍";
|
res += String{Codepoint{(uint32_t)(0x2400 + c)}};
|
||||||
pos = it+1;
|
pos = it+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user