Got extend_match_with_res generating the correct edit scripts for same-direction matches