Fix search highlighter wrong code

This commit is contained in:
Maxime Coste 2015-04-19 15:19:39 +01:00
parent 1dfa2d7fe4
commit f714766854

View File

@ -458,8 +458,8 @@ HighlighterAndId create_search_highlighter(HighlighterParameters params)
auto get_face = [](const Context& context){ auto get_face = [](const Context& context){
return FacesSpec{ { 0, "Search" } }; return FacesSpec{ { 0, "Search" } };
}; };
auto get_regex = [](const Context&){ auto get_regex = [](const Context& context){
auto s = Context().main_sel_register_value("/"); auto s = context.main_sel_register_value("/");
try try
{ {
return s.empty() ? Regex{} : Regex{s.begin(), s.end()}; return s.empty() ? Regex{} : Regex{s.begin(), s.end()};