From 2886de064da824404ad109e4455fadf18a29e98b Mon Sep 17 00:00:00 2001 From: Nate Mills Date: Wed, 26 Feb 2020 07:42:12 -0800 Subject: [PATCH] Updating remove duplicate function to use same min line length as other functions. --- hightlight_duplicates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hightlight_duplicates.py b/hightlight_duplicates.py index 711c941..746aa77 100644 --- a/hightlight_duplicates.py +++ b/hightlight_duplicates.py @@ -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())