Revert "Don't tokenize files that have more than 10000 lines"

This was a premature optimization. The real problem is
with the spell-check package.

This reverts commit 987d1da233.
This commit is contained in:
Corey Johnson & Nathan Sobo
2013-04-23 13:50:02 -07:00
parent 693a495618
commit caed3d39de

View File

@@ -62,11 +62,8 @@ class TokenizedBuffer
@invalidateRow(0)
@trigger "changed", { start: 0, end: lastRow, delta: 0 }
tooBigToTokenize: ->
@screenLines.length > 10000
tokenizeInBackground: ->
return if not @visible or @pendingChunk or @tooBigToTokenize()
return if not @visible or @pendingChunk
@pendingChunk = true
_.defer =>
@pendingChunk = false