Selectors: fix select_matching
This commit is contained in:
parent
03c199420e
commit
0f4f201b6d
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user