summaryrefslogtreecommitdiff
path: root/src/changes.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-02-20 19:46:12 +0000
committerMaxime Coste <mawww@kakoune.org>2017-02-20 19:46:12 +0000
commite2f6b9a393f4ad0832ce4508a307851a2af84808 (patch)
tree40bc67fe59754f4caa203f754275bbf4770e3f70 /src/changes.cc
parentfe2d0fab718078231c31f18607666a3deabb931c (diff)
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'
Diffstat (limited to 'src/changes.cc')
-rw-r--r--src/changes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/changes.cc b/src/changes.cc
index 7feb82ec..f7ec8067 100644
--- a/src/changes.cc
+++ b/src/changes.cc
@@ -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;
}