Selectors: fix select_matching

This commit is contained in:
Maxime Coste 2011-09-22 14:18:26 +00:00
parent 03c199420e
commit 0f4f201b6d

View File

@ -151,7 +151,7 @@ Selection select_matching(const BufferIterator& cursor)
if (*it == closing) if (*it == closing)
++level; ++level;
else if (*it == opening and --level == 0) else if (*it == opening and --level == 0)
return Selection(begin, it); return Selection(begin, it-1);
--it; --it;
} }
} }