Small tweak in DynamicRegexHighlighter
This commit is contained in:
parent
a2d78941ba
commit
62c981fe2d
|
@ -402,7 +402,7 @@ public:
|
||||||
FacesSpec face = m_face_getter(context);
|
FacesSpec face = m_face_getter(context);
|
||||||
if (regex != m_last_regex or face != m_last_face)
|
if (regex != m_last_regex or face != m_last_face)
|
||||||
{
|
{
|
||||||
m_last_regex = regex;
|
m_last_regex = std::move(regex);
|
||||||
m_last_face = face;
|
m_last_face = face;
|
||||||
if (not m_last_regex.empty())
|
if (not m_last_regex.empty())
|
||||||
m_highlighter.reset(m_last_regex, m_last_face);
|
m_highlighter.reset(m_last_regex, m_last_face);
|
||||||
|
@ -429,7 +429,6 @@ make_dynamic_regex_highlighter(RegexGetter regex_getter, FaceGetter face_getter)
|
||||||
std::move(regex_getter), std::move(face_getter));
|
std::move(regex_getter), std::move(face_getter));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HighlighterAndId create_search_highlighter(HighlighterParameters params)
|
HighlighterAndId create_search_highlighter(HighlighterParameters params)
|
||||||
{
|
{
|
||||||
if (params.size() != 0)
|
if (params.size() != 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user