mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
Treat all whitespace lines as not having leading whitespace
Instead it's treated as all trailing whitespace, as it was originally.
This commit is contained in:
@@ -119,7 +119,7 @@ class TokenizedLine
|
||||
outputTokens
|
||||
|
||||
markLeadingAndTrailingWhitespaceTokens: ->
|
||||
firstNonWhitespacePosition = @text.search(/\S|$/)
|
||||
firstNonWhitespacePosition = @text.search(/\S/)
|
||||
firstTrailingWhitespacePosition = @text.search(/\s*$/)
|
||||
lineIsWhitespaceOnly = firstTrailingWhitespacePosition is 0
|
||||
position = 0
|
||||
|
||||
Reference in New Issue
Block a user