git: Fix another WrapPointCursor panic in spacer_blocks (#48932)

Closes ZED-4ZH

Release Notes:

- N/A
This commit is contained in:
Cole Miller authored and GitHub committed 2026-02-11 12:55:51 +00:00
1 parent 3938403a01
commit 40b468e69e
1 file changed
+2 -1
+2 -1
View File
@@ -1314,7 +1314,8 @@ impl BlockMap {
(first_point, edit_for_first_point.new.start)
};
let our_baseline = our_wrapper(our_baseline);
let their_baseline = companion_wrapper(their_baseline);
let their_baseline =
companion_wrapper(their_baseline.min(excerpt.target_excerpt_range.end));
let mut delta = their_baseline.0 as i32 - our_baseline.0 as i32;