1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 01:24:52 +03:00

Tweak some character categorization function implementations

This commit is contained in:
Maxime Coste 2017-02-23 00:56:40 +00:00
parent 55f6ca238f
commit 8703f30063

View File

@ -38,12 +38,12 @@ inline bool is_word(Codepoint c)
template<>
inline bool is_word<WORD>(Codepoint c)
{
return not is_horizontal_blank(c) and not is_eol(c);
return not is_blank(c);
}
inline bool is_punctuation(Codepoint c)
{
return not (is_word(c) or is_horizontal_blank(c) or is_eol(c));
return not (is_word(c) or is_blank(c));
}
inline bool is_basic_alpha(Codepoint c)