diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-04 20:10:12 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-04 20:10:12 +0000 |
| commit | 48a296dc71ac96720989828caa40d0eab0717c06 (patch) | |
| tree | 27874bba15f5414e284289cb4dd7a99b6d8e3a86 /src | |
| parent | d6a2d7785762be28563bb6424a00198c9f39c8b5 (diff) | |
Avoid an unneeded call to ensure_char_start
Diffstat (limited to 'src')
| -rw-r--r-- | src/selectors.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/selectors.cc b/src/selectors.cc index bf44c186..06257ad5 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -573,10 +573,9 @@ void select_all_matches(SelectionList& selections, const Regex& regex) for (; re_it != re_end; ++re_it) { auto begin = ensure_char_start(buffer, (*re_it)[0].first); - auto end = ensure_char_start(buffer, (*re_it)[0].second); - if (begin == sel_end) continue; + auto end = ensure_char_start(buffer, (*re_it)[0].second); CaptureList captures; for (auto& match : *re_it) |
