diff options
Diffstat (limited to 'gitsrht/editorconfig.py')
-rw-r--r-- | gitsrht/editorconfig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gitsrht/editorconfig.py b/gitsrht/editorconfig.py index 8186062..48944d8 100644 --- a/gitsrht/editorconfig.py +++ b/gitsrht/editorconfig.py @@ -48,6 +48,11 @@ class EditorConfig: return 8 return self._config.get("tab_size", self._config.get("indent_size", 8)) + def max_line_length(self): + if self._config == None: + return 80 + return self._config.get("max_line_length", 80) + # Via https://github.com/editorconfig/editorconfig-core-py/blob/master/editorconfig/fnmatch.py # 2-Clause BSD |