mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 10:32:19 +03:00
Small tweak in DynamicRegexHighlighter
This commit is contained in:
parent
a2d78941ba
commit
62c981fe2d
@ -402,7 +402,7 @@ public:
|
||||
FacesSpec face = m_face_getter(context);
|
||||
if (regex != m_last_regex or face != m_last_face)
|
||||
{
|
||||
m_last_regex = regex;
|
||||
m_last_regex = std::move(regex);
|
||||
m_last_face = face;
|
||||
if (not m_last_regex.empty())
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
HighlighterAndId create_search_highlighter(HighlighterParameters params)
|
||||
{
|
||||
if (params.size() != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user