Fix overly strict backward_sorted_until

A change that ended exactly where the previous one started was not
considered backward sorted. Leading to some very bad performances in
certain cases, like '100000o<esc>u'
main
Maxime Coste 2017-02-20 19:46:12 +00:00
parent fe2d0fab71
commit e2f6b9a393
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ const Buffer::Change* backward_sorted_until(const Buffer::Change* first, const B
if (first != last) {
const Buffer::Change* next = first;
while (++next != last) {
if (first->begin <= next->end)
if (first->begin < next->end)
return next;
first = next;
}