mirror of
https://github.com/atom/atom.git
synced 2026-02-04 19:54:59 -05:00
Un-F
This commit is contained in:
@@ -65,7 +65,7 @@ class TokenizedBuffer
|
||||
tokenizeNextChunk: ->
|
||||
rowsRemaining = @chunkSize
|
||||
|
||||
while @invalidRows.length and rowsRemaining > 0
|
||||
while @firstInvalidRow()? and rowsRemaining > 0
|
||||
invalidRow = @invalidRows.shift()
|
||||
lastRow = @getLastRow()
|
||||
continue if invalidRow > lastRow
|
||||
@@ -86,7 +86,7 @@ class TokenizedBuffer
|
||||
@invalidateRow(row + 1) unless filledRegion
|
||||
@trigger "change", { start: invalidRow, end: row, delta: 0 }
|
||||
|
||||
@tokenizeInBackground()
|
||||
@tokenizeInBackground() if @firstInvalidRow()?
|
||||
|
||||
firstInvalidRow: ->
|
||||
@invalidRows[0]
|
||||
|
||||
Reference in New Issue
Block a user