Fix bug in move

This commit is contained in:
2024-05-14 15:28:22 -07:00
parent 607aea3213
commit 93021d5b28
2 changed files with 3 additions and 2 deletions

View File

@@ -583,7 +583,8 @@ struct __attribute__((__visibility__("hidden"))) VersionedMap::Impl {
finger.push(c, !direction);
}
} else {
while (finger.searchPathSize() > 1 && finger.backDirection() == true) {
while (finger.searchPathSize() > 1 &&
finger.backDirection() == direction) {
finger.pop();
}
finger.pop();