Add tokenized event to tokenized buffer

This commit is contained in:
probablycorey
2014-05-28 14:53:38 -07:00
parent bb31af5e8c
commit c56ac70181
2 changed files with 18 additions and 1 deletions

View File

@@ -124,7 +124,10 @@ class TokenizedBuffer extends Model
@invalidateRow(row + 1) unless filledRegion
@emit "changed", { start: invalidRow, end: row, delta: 0 }
@tokenizeInBackground() if @firstInvalidRow()?
if @firstInvalidRow()?
@tokenizeInBackground()
else
@emit "tokenized"
firstInvalidRow: ->
@invalidRows[0]