diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-07-29 13:51:07 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-07-29 13:51:07 +0100 |
| commit | c84b861d2f54ef7fd732c21536731b28e6601030 (patch) | |
| tree | 64e8c45c938f6fe6639b750db67ee98226eff5a1 /src/normal.cc | |
| parent | 4f452474c85beadfdf3604d80e89a94e77fa998d (diff) | |
remove useless SelectionList copy in keep
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 3 |
1 files changed, 1 insertions, 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) |
