Skip to content

Commit

Permalink
Updating remove duplicate function to use same min line length as oth…
Browse files Browse the repository at this point in the history
…er functions.
  • Loading branch information
LordBrom committed Feb 26, 2020
1 parent e86c90e commit 2886de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hightlight_duplicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def remove_duplicates(view, edit):
# get all lines
lines = view.lines(sublime.Region(0, view.size()))
# count and filter out non duplicated lines
duplicates = remove_first(filter_counts(count_lines(lines, view, 0)))
duplicates = remove_first(filter_counts(count_lines(lines, view, getMinLineLength())))
# select duplicated lines
merged = merge_results(duplicates.values())
merged.sort(key=lambda elm: elm.begin())
Expand Down

0 comments on commit 2886de0

Please sign in to comment.