Only re-tokenize lines when tab length changes

Closes #3929
This commit is contained in:
Kevin Sawicki
2014-10-30 16:20:05 -07:00
parent 228ba5f96a
commit 19b0f760a1
2 changed files with 9 additions and 1 deletions

View File

@@ -125,7 +125,10 @@ class TokenizedBuffer extends Model
getTabLength: ->
@tabLength ? @configSettings.tabLength
setTabLength: (@tabLength) ->
setTabLength: (tabLength) ->
return if tabLength is @tabLength
@tabLength = tabLength
@retokenizeLines()
setInvisibles: (invisibles) ->