We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c9f77 commit 2ff340fCopy full SHA for 2ff340f
42 Headers.py
@@ -84,7 +84,7 @@ def on_load(self, view) :
84
header = getHeader(view.file_name())
85
hasHeader = False
86
if header :
87
- staticHeaderLength = header.find('\n')
+ staticHeaderLength = header.find('\n', header.find('\n') + 1)
88
staticRegion = sublime.Region(0, staticHeaderLength)
89
hasHeader = header[:staticHeaderLength] == view.substr(staticRegion)
90
view.settings().set(SETTINGS_HAS_HEADER_KEY, hasHeader)
0 commit comments