summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/selectors.cc2
1 files changed, 1 insertions, 1 deletions
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;
}
}