1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-11 13:00:41 +03:00

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'
This commit is contained in:
Maxime Coste 2017-02-20 19:46:12 +00:00
parent fe2d0fab71
commit e2f6b9a393

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;
}