Merge pull request #12823 from atom/mb-as-guard-tab-length

Guard against null tab length value
This commit is contained in:
Max Brunsfeld
2016-09-29 14:21:54 -07:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -241,7 +241,7 @@ class TextEditor extends Model
displayLayerParams.atomicSoftTabs = value
when 'tabLength'
if value isnt @tokenizedBuffer.getTabLength()
if value? and value isnt @tokenizedBuffer.getTabLength()
@tokenizedBuffer.setTabLength(value)
displayLayerParams.tabLength = value