File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -327,9 +327,28 @@ pub fn process_change(
327327 ( None , Some ( Change :: Unchanged ( unchanged) ) )
328328 }
329329 ( false , false ) => {
330+ // Any of the following cases are handled by this branch:
331+ // <---> (hunk)
332+ // <----------> (unchanged)
333+ //
334+ // <----> (hunk)
335+ // <--> (unchanged)
336+ //
337+ // <--> (hunk)
338+ // <----> (unchanged)
339+
330340 if unchanged. end <= hunk. range_in_destination . start {
341+ // <----> (hunk)
342+ // <--> (unchanged)
343+
331344 ( Some ( hunk. clone ( ) ) , None )
332345 } else {
346+ // <--> (hunk)
347+ // <----> (unchanged)
348+ //
349+ // <---> (hunk)
350+ // <----------> (unchanged)
351+
333352 let line_range_in_next_destination =
334353 LineRange :: with_offset ( hunk. range_in_destination . clone ( ) , * offset_in_destination) ;
335354
You can’t perform that action at this time.
0 commit comments