anchor.diff:  
       FIELD-SYMBOLS: <ls_diff_file> LIKE LINE OF mt_diff_files.
   
  -    READ TABLE mt_diff_files ASSIGNING <ls_diff_file>
  -                             WITH KEY filename = iv_filename.
  -    IF sy-subrc <> 0.
  +    LOOP AT mt_diff_files ASSIGNING <ls_diff_file>.
  +      IF get_patch_id( <ls_diff_file> ) = iv_filename.
  +        ro_diff = <ls_diff_file>-o_diff.
  +        EXIT.
  +      ENDIF.
  +    ENDLOOP.
  +
  +    IF ro_diff IS NOT BOUND.
         zcx_abapgit_exception=>raise( |Invalid filename { iv_filename }| ).
       ENDIF.
  -
  -    ro_diff = <ls_diff_file>-o_diff.
   
     ENDMETHOD.
   
  
positive.code:     INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
  
    ENDMETHOD.
  ENDCLASS.
  
negative.code:         ro_html->add( render_line_unified( is_diff_line = <ls_diff> ) ).
        ELSE.
          ro_html->add( render_line_split( is_diff_line = <ls_diff>
                                           iv_filename  = get_patch_id( is_diff )
                                           iv_fstate    = is_diff-fstate
                                           iv_index     = lv_tabix ) ).
        ENDIF.
  