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)
|
||||
++level;
|
||||
else if (*it == opening and --level == 0)
|
||||
return Selection(begin, it);
|
||||
return Selection(begin, it-1);
|
||||
--it;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user