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:
commit
d3f9358fdb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user