Fix a count_deltas bug

This commit is contained in:
Bojan Serafimov
2022-12-29 14:30:04 -05:00
parent 6bfa99e0c4
commit f0a23b474c

View File

@@ -272,7 +272,7 @@ impl LayerMap {
// Initialize loop variables
let mut max_stacked_deltas = 0;
let mut current_key = start.clone();
let mut current_val = version.query(start).1;
let mut current_val = version.query(start).0;
// Loop through the delta coverage and recurse on each part
for (change_key, change_val) in version.delta_coverage(start..end) {