Remove foldable from ScreenLine

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-11-06 11:41:48 -08:00
parent 139f5d0b50
commit b8beec6f55
3 changed files with 2 additions and 20 deletions

View File

@@ -222,7 +222,6 @@ class DisplayBuffer
startBufferColumn = 0
while currentBufferRow <= endBufferRow
screenLine = @tokenizedBuffer.lineForScreenRow(currentBufferRow)
screenLine.foldable = @languageMode.doesBufferRowStartFold(currentBufferRow)
if fold = @largestFoldStartingAtBufferRow(currentBufferRow)
screenLine = screenLine.copy()

View File

@@ -2,14 +2,13 @@ _ = require 'underscore'
module.exports =
class ScreenLine
constructor: ({@tokens, @ruleStack, @bufferRows, @startBufferColumn, @fold, @foldable}) ->
constructor: ({@tokens, @ruleStack, @bufferRows, @startBufferColumn, @fold}) ->
@bufferRows ?= 1
@startBufferColumn ?= 0
@foldable ?= false
@text = _.pluck(@tokens, 'value').join('')
copy: ->
new ScreenLine({@tokens, @ruleStack, @bufferRows, @startBufferColumn, @fold, @foldable})
new ScreenLine({@tokens, @ruleStack, @bufferRows, @startBufferColumn, @fold})
clipScreenColumn: (column, options={}) ->
{ skipAtomicTokens } = options
@@ -74,7 +73,6 @@ class ScreenLine
bufferRows: 0
startBufferColumn: @startBufferColumn
ruleStack: @ruleStack
foldable: @foldable
)
rightFragment = new ScreenLine(
tokens: rightTokens