mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Merge pull request #6007 from octref/fix-large-file-delay
🐎 Don't tokenize on NullGrammar
This commit is contained in:
@@ -138,6 +138,7 @@ class TokenizedBuffer extends Model
|
||||
|
||||
tokenizeInBackground: ->
|
||||
return if not @visible or @pendingChunk or not @isAlive()
|
||||
return if @grammar is @grammar.registry.nullGrammar
|
||||
@pendingChunk = true
|
||||
_.defer =>
|
||||
@pendingChunk = false
|
||||
|
||||
Reference in New Issue
Block a user