From 4812dcc355b595b098a9bfa27551b54c754641c7 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 1 Jun 2015 20:14:39 +0200 Subject: [PATCH] Include invisibles in TokenizedLine::copy --- src/tokenized-line.coffee | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/tokenized-line.coffee b/src/tokenized-line.coffee index 6761eecad..b8f7226c8 100644 --- a/src/tokenized-line.coffee +++ b/src/tokenized-line.coffee @@ -220,17 +220,20 @@ class TokenizedLine copy: -> copy = new TokenizedLine copy.tokenIterator = @tokenIterator - copy.indentLevel = @indentLevel copy.openScopes = @openScopes copy.text = @text copy.tags = @tags copy.specialTokens = @specialTokens + copy.startBufferColumn = @startBufferColumn + copy.bufferDelta = @bufferDelta + copy.ruleStack = @ruleStack + copy.lineEnding = @lineEnding + copy.invisibles = @invisibles + copy.endOfLineInvisibles = @endOfLineInvisibles + copy.indentLevel = @indentLevel + copy.tabLength = @tabLength copy.firstNonWhitespaceIndex = @firstNonWhitespaceIndex copy.firstTrailingWhitespaceIndex = @firstTrailingWhitespaceIndex - copy.lineEnding = @lineEnding - copy.endOfLineInvisibles = @endOfLineInvisibles - copy.ruleStack = @ruleStack - copy.startBufferColumn = @startBufferColumn copy.fold = @fold copy