Fix one missing face pre-parsing

This commit is contained in:
Maxime Coste 2023-06-12 17:12:24 +10:00
parent 6984340936
commit ca4593e5cd

View File

@ -478,7 +478,7 @@ std::unique_ptr<Highlighter> create_line_highlighter(HighlighterParameters param
if (params.size() != 2) if (params.size() != 2)
throw runtime_error("wrong parameter count"); throw runtime_error("wrong parameter count");
auto func = [line_expr=params[0], facespec=params[1]] auto func = [line_expr=params[0], facespec=parse_face(params[1])]
(HighlightContext context, DisplayBuffer& display_buffer, BufferRange) (HighlightContext context, DisplayBuffer& display_buffer, BufferRange)
{ {
LineCount line = -1; LineCount line = -1;