1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 22:22:41 +03:00

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){
return FacesSpec{ { 0, "Search" } };
};
auto get_regex = [](const Context&){
auto s = Context().main_sel_register_value("/");
auto get_regex = [](const Context& context){
auto s = context.main_sel_register_value("/");
try
{
return s.empty() ? Regex{} : Regex{s.begin(), s.end()};