diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-09 08:50:17 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-09 08:50:17 +0000 |
| commit | 62c981fe2d354e07ca622fbeaf21bc511785d0e4 (patch) | |
| tree | af070fe1171f0f37ad0c7209f6fa49c60086183e /src | |
| parent | a2d78941ba8d199ffbaa4b7b102a45312c78fcf7 (diff) | |
Small tweak in DynamicRegexHighlighter
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index a2e8e662..e35fe8fe 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -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) |
