diff --git a/src/normal.cc b/src/normal.cc index 3b8db13aa..7f178bbbd 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -223,7 +223,7 @@ template void search(Context& context) { const char* prompt = forward ? "search:" : "reverse search:"; - SelectionList selections = context.editor().selections(); + DynamicSelectionList selections{context.buffer(), context.editor().selections()}; context.input_handler().prompt(prompt, get_color("Prompt"), complete_nothing, [selections](const String& str, PromptEvent event, Context& context) { try