Remove unused lambda capture

This commit is contained in:
fsub 2018-03-03 17:57:51 +01:00
parent 7a54c0edfe
commit 44d381ce79

View File

@ -1017,7 +1017,7 @@ void keep(Context& context, NormalParams params)
const int main_index = std::min(context.selections().main_index(), saved_reg.size()-1); const int main_index = std::min(context.selections().main_index(), saved_reg.size()-1);
regex_prompt(context, prompt.str(), saved_reg[main_index], regex_prompt(context, prompt.str(), saved_reg[main_index],
[saved_reg, reg, main_index] [saved_reg, reg]
(const Regex& regex, PromptEvent event, Context& context) { (const Regex& regex, PromptEvent event, Context& context) {
if (event == PromptEvent::Abort) if (event == PromptEvent::Abort)