expand_unprintable: use iscntrl rather than isprint which does not work as expected
This commit is contained in:
parent
c58bab0f66
commit
5a6922a045
|
@ -315,7 +315,7 @@ void expand_unprintable(const Window& window, DisplayBuffer& display_buffer)
|
|||
end = buffer.iterator_at(atom_it->content.end()); it != end; ++it)
|
||||
{
|
||||
Codepoint cp = *it;
|
||||
if (cp != '\n' and not isprint((int)cp))
|
||||
if (cp != '\n' and iscntrl((int)cp))
|
||||
{
|
||||
std::ostringstream oss;
|
||||
oss << "U+" << std::hex << cp;
|
||||
|
|
Loading…
Reference in New Issue
Block a user