Fix selection update

This commit is contained in:
Maxime Coste 2014-06-12 21:23:49 +01:00
parent fa5b6b716d
commit 89d30cbb21

View File

@ -163,7 +163,7 @@ struct ForwardChangesTracker
bool relevant(const Buffer::Change& change, ByteCoord old_coord) const bool relevant(const Buffer::Change& change, ByteCoord old_coord) const
{ {
auto new_coord = get_new_coord(old_coord); auto new_coord = get_new_coord_tolerant(old_coord);
return change.type == Buffer::Change::Insert ? change.begin <= new_coord return change.type == Buffer::Change::Insert ? change.begin <= new_coord
: change.begin < new_coord; : change.begin < new_coord;
} }