1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-27 12:16:22 +03:00

Merge remote-tracking branch 'Qeole/pr/crash-colors'

This commit is contained in:
Maxime Coste 2022-02-15 20:44:41 +11:00
commit d3f9358fdb

View File

@ -25,6 +25,9 @@ static FaceRegistry::FaceSpec parse_face(StringView facedesc)
throw runtime_error(invalid_face_error.str());
auto colors_end = std::min(attr_it, base_it);
if (underline_it != facedesc.end()
and underline_it > colors_end)
throw runtime_error(invalid_face_error.str());
auto parse_color = [](StringView spec) {
return spec.empty() ? Color::Default : str_to_color(spec);