From 0555288e462bf927c95002b42300981091bf0a66 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 10 Jun 2015 22:48:15 +0100 Subject: [PATCH] Show main selection search pattern on '*' Fixes #278 --- src/normal.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/normal.cc b/src/normal.cc index 8cd44a7b4..e94ef1066 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -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; }