Skip to content

Instantly share code, notes, and snippets.

@yannickcr
Created January 6, 2014 14:47
Show Gist options
  • Save yannickcr/8283774 to your computer and use it in GitHub Desktop.
Save yannickcr/8283774 to your computer and use it in GitHub Desktop.
highlights_full_line option for SublimeLinter 3
lint/linter.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lint/linter.py b/lint/linter.py
index bb701df..bef4602 100644
--- a/lint/linter.py
+++ b/lint/linter.py
@@ -1258,13 +1258,17 @@ class Linter(metaclass=LinterMeta):
col = i
break
- if col is not None:
+ if (
+ col is not None and
+ not persist.settings.get('highlights_full_line')
+ ):
self.highlight.range(line, col, error_type=error_type, word_re=self.word_re)
elif near:
col = self.highlight.near(line, near, error_type=error_type, word_re=self.word_re)
else:
if (
persist.settings.get('no_column_highlights_line') or
+ persist.settings.get('highlights_full_line') or
persist.settings.get('gutter_theme') == 'none'
):
pos = -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment