diff options
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc index 6a5468b4..5c073220 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -719,7 +719,7 @@ void keep(Context& context, int) for (auto& sel : context.selections()) { if (boost::regex_search(buffer.iterator_at(sel.min()), - utf8::next(buffer.iterator_at(sel.max())), ex) == matching) + utf8::next(buffer.iterator_at(sel.max()), buffer.end()), ex) == matching) keep.push_back(sel); } if (keep.empty()) |
