Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sobo committed May 13, 2015
1 parent 00b30f7 commit dc47369
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tokenized-line.coffee
Expand Up @@ -334,7 +334,7 @@ class TokenizedLine
leftSpecialTokens = {} leftSpecialTokens = {}
rightSpecialTokens = {} rightSpecialTokens = {}


rightopenScopes = @openScopes.slice() rightOpenScopes = @openScopes.slice()


screenColumn = 0 screenColumn = 0


Expand Down Expand Up @@ -378,13 +378,13 @@ class TokenizedLine
else if (tag % 2) is -1 else if (tag % 2) is -1
if screenColumn < column if screenColumn < column
leftTags.push(tag) leftTags.push(tag)
rightopenScopes.push(tag) rightOpenScopes.push(tag)
else else
rightTags.push(tag) rightTags.push(tag)
else else
if screenColumn < column if screenColumn < column
leftTags.push(tag) leftTags.push(tag)
rightopenScopes.pop() rightOpenScopes.pop()
else else
rightTags.push(tag) rightTags.push(tag)


Expand All @@ -406,7 +406,7 @@ class TokenizedLine
leftFragment.firstTrailingWhitespaceIndex = Math.min(column, @firstTrailingWhitespaceIndex) leftFragment.firstTrailingWhitespaceIndex = Math.min(column, @firstTrailingWhitespaceIndex)


rightFragment = new TokenizedLine rightFragment = new TokenizedLine
rightFragment.openScopes = rightopenScopes rightFragment.openScopes = rightOpenScopes
rightFragment.text = rightText rightFragment.text = rightText
rightFragment.tags = rightTags rightFragment.tags = rightTags
rightFragment.specialTokens = rightSpecialTokens rightFragment.specialTokens = rightSpecialTokens
Expand Down

0 comments on commit dc47369

Please sign in to comment.