1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-23 19:46:33 +03:00

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)
++level;
else if (*it == opening and --level == 0)
return Selection(begin, it);
return Selection(begin, it-1);
--it;
}
}