mirror of
https://github.com/atom/atom.git
synced 2026-02-13 16:14:59 -05:00
Merge pull request #12823 from atom/mb-as-guard-tab-length
Guard against null tab length value
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user