From c84b861d2f54ef7fd732c21536731b28e6601030 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 29 Jul 2013 13:51:07 +0100 Subject: [PATCH] remove useless SelectionList copy in keep --- src/normal.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/normal.cc b/src/normal.cc index be6b83b0..29dcebd7 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -541,9 +541,8 @@ void keep(Context& context) regex_prompt(context, prompt, [](const Regex& ex, Context& context) { Editor& editor = context.editor(); const Buffer& buffer = context.buffer(); - SelectionList sels = editor.selections(); SelectionList keep; - for (auto& sel : sels) + for (auto& sel : editor.selections()) { if (boost::regex_search(buffer.iterator_at(sel.min()), utf8::next(buffer.iterator_at(sel.max())), ex) == matching)