We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ebc48 commit d82775bCopy full SHA for d82775b
src/unicode.hh
@@ -101,7 +101,7 @@ inline bool is_identifier(Codepoint c) noexcept
101
102
inline ColumnCount codepoint_width(Codepoint c) noexcept
103
{
104
- if (c == '\n')
+ if (c < 0x80) [[likely]]
105
return 1;
106
const auto width = wcwidth((wchar_t)c);
107
return width >= 0 ? width : 1;
0 commit comments