diff --git a/highlight_whitespaces.py b/highlight_whitespaces.py index 3c03d47..21f689a 100644 --- a/highlight_whitespaces.py +++ b/highlight_whitespaces.py @@ -48,7 +48,7 @@ def find_whitespaces_spaces(view): last_whitespace = bool(hws_settings.get('highlight_last_whitespace',DEFAULT_LAST_WHITESPACE)) regex = ' {2,}' if last_whitespace: - regex += '| {1,}$' + regex += '| {1,}$' return view.find_all(regex)