Show main selection search pattern on '*'

Fixes #278
This commit is contained in:
Maxime Coste 2015-06-10 22:48:15 +01:00
parent 46b167b851
commit 0555288e46

View File

@ -674,6 +674,10 @@ void use_selection_as_search_pattern(Context& context, NormalParams)
content = content + "\\b";
}
patterns.push_back(std::move(content));
context.print_status({
format("search pattern set to '{}'", patterns[sels.main_index()]),
get_face("Information") });
}
RegisterManager::instance()['/'] = patterns;
}