diff --git a/src/normal.cc b/src/normal.cc index 3b8db13a..7f178bbb 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