diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-02-15 20:44:41 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-02-15 20:44:41 +1100 |
| commit | d3f9358fdb1de6ae27692b69dd494e7bd393faab (patch) | |
| tree | 4276a7c3b743cd28593b4b25991b772cb50361a4 /src | |
| parent | b030fc4c07ad2bc76abb7377256924cd43dfab5b (diff) | |
| parent | 3abf2b82602fd34e792b2e29b925a877c265a045 (diff) | |
Merge remote-tracking branch 'Qeole/pr/crash-colors'
Diffstat (limited to 'src')
| -rw-r--r-- | src/face_registry.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/face_registry.cc b/src/face_registry.cc index 84f6826b..e7803cac 100644 --- a/src/face_registry.cc +++ b/src/face_registry.cc @@ -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); |
