Skip to content

Commit

Permalink
Diff: Only add beacon at beginning while patching (#3218)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianguenter2 committed Feb 20, 2020
1 parent a8d474f commit cec926e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui/zcl_abapgit_gui_page_diff.clas.abap
Expand Up @@ -817,7 +817,7 @@ CLASS zcl_abapgit_gui_page_diff IMPLEMENTATION.

DATA: lo_highlighter TYPE REF TO zcl_abapgit_syntax_highlighter,
lt_diffs TYPE zif_abapgit_definitions=>ty_diffs_tt,
lv_insert_nav TYPE abap_bool VALUE abap_true,
lv_insert_nav TYPE abap_bool,
lv_tabix TYPE syst-tabix.

FIELD-SYMBOLS <ls_diff> LIKE LINE OF lt_diffs.
Expand All @@ -827,6 +827,11 @@ CLASS zcl_abapgit_gui_page_diff IMPLEMENTATION.

lt_diffs = is_diff-o_diff->get( ).

IF mv_patch_mode = abap_true.
" add beacon at beginning of file
lv_insert_nav = abap_true.
ENDIF.

LOOP AT lt_diffs ASSIGNING <ls_diff>.

lv_tabix = sy-tabix.
Expand Down

0 comments on commit cec926e

Please sign in to comment.