Skip to content

Commit

Permalink
remove look point
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed May 28, 2023
1 parent b94640b commit e328ee6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions command_update_diff_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,13 @@ def add_diff_highlights(self, diff_view: sublime.View, git_status: GitStatus) ->
start, end = i.span(0)
start_point = diff_view.text_point(row, start + plus_minus_sign_offset)
end_point = diff_view.text_point(row, end + plus_minus_sign_offset)
start_find_pt = end_point
add_changes.append(sublime.Region(start_point, end_point))

removal_matches = re.finditer(r'\-+', diff_text)
for i in removal_matches:
start, end = i.span(0)
start_point = diff_view.text_point(row, start + plus_minus_sign_offset)
end_point = diff_view.text_point(row, end + plus_minus_sign_offset)
start_find_pt = end_point
remove_changes.append(sublime.Region(start_point, end_point))

diff_text_without_leading_tilde = ' ' + diff_text[1:] # diff_text
Expand All @@ -116,7 +114,6 @@ def add_diff_highlights(self, diff_view: sublime.View, git_status: GitStatus) ->
start, end = i.span(0)
start_point = diff_view.text_point(row, start + plus_minus_sign_offset)
end_point = diff_view.text_point(row, end + plus_minus_sign_offset)
start_find_pt = end_point

if diff_view.match_selector(start_point, 'markup.deleted.diff'):
remove_changes.append(sublime.Region(start_point, end_point))
Expand Down

0 comments on commit e328ee6

Please sign in to comment.