Merge remote-tracking branch 'lenormf/fix-face-name-format'

This commit is contained in:
Maxime Coste 2018-07-22 21:13:48 +10:00
commit 6270ce4a80

View File

@ -92,7 +92,7 @@ void FaceRegistry::add_face(StringView name, StringView facedesc, bool override)
if (name.empty() or is_color_name(name) or if (name.empty() or is_color_name(name) or
std::any_of(name.begin(), name.end(), std::any_of(name.begin(), name.end(),
[](char c){ return not isalnum(c); })) [](char c){ return not is_word(c); }))
throw runtime_error(format("invalid face name: '{}'", name)); throw runtime_error(format("invalid face name: '{}'", name));
if (name == facedesc) if (name == facedesc)