Skip to content

Commit 2ff340f

Browse files
author
Guillaume Depardon
committed
Fixed a bug for php header detection
1 parent b9c9f77 commit 2ff340f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

42 Headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def on_load(self, view) :
8484
header = getHeader(view.file_name())
8585
hasHeader = False
8686
if header :
87-
staticHeaderLength = header.find('\n')
87+
staticHeaderLength = header.find('\n', header.find('\n') + 1)
8888
staticRegion = sublime.Region(0, staticHeaderLength)
8989
hasHeader = header[:staticHeaderLength] == view.substr(staticRegion)
9090
view.settings().set(SETTINGS_HAS_HEADER_KEY, hasHeader)

0 commit comments

Comments
 (0)