diff --git a/src/normal.cc b/src/normal.cc index 176f8c0c8..882c39861 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1017,7 +1017,7 @@ void keep(Context& context, NormalParams params) const int main_index = std::min(context.selections().main_index(), saved_reg.size()-1); regex_prompt(context, prompt.str(), saved_reg[main_index], - [saved_reg, reg, main_index] + [saved_reg, reg] (const Regex& regex, PromptEvent event, Context& context) { if (event == PromptEvent::Abort)