summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/normal.cc2
1 files changed, 1 insertions, 1 deletions
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<SelectMode mode, bool forward>
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