From 0f4f201b6d9069f56c5f9ca7121dfd4def0dd759 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 22 Sep 2011 14:18:26 +0000 Subject: [PATCH] Selectors: fix select_matching --- src/selectors.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }