diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-07-01 13:33:20 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-07-01 13:33:20 +0100 |
| commit | ee6fc92ae21cf052c228965d86cfe78ae98bf1cf (patch) | |
| tree | 13ede61539e7847025233843324abf109f9861ad /src/normal.cc | |
| parent | 58d115ec88a792d10e08735f640d2a839baa529f (diff) | |
Fix stupid bug in '*'
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/normal.cc b/src/normal.cc index 5db0852b..a9357806 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -683,11 +683,12 @@ 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") }); } + + context.print_status({ + format("search pattern set to '{}'", patterns[sels.main_index()]), + get_face("Information") }); + RegisterManager::instance()['/'] = patterns; // Hack, as Window do not take register state into account |
