diff --git a/src/selectors.cc b/src/selectors.cc index 80d61a45..d3f6835c 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -151,7 +151,7 @@ Selection select_matching(const BufferIterator& cursor) if (*it == closing) ++level; else if (*it == opening and --level == 0) - return Selection(begin, it); + return Selection(begin, it-1); --it; } }