Remove un-necessary mini checks when initializing

In addition, the boolean check I added for softWrapColumn was incorrect.
This commit is contained in:
Wliu
2017-02-07 09:17:09 -05:00
parent 29c956e66f
commit d1c14e4f39

View File

@@ -169,8 +169,8 @@ class TextEditor extends Model
unless @displayLayer?
displayLayerParams = {
invisibles: @getInvisibles(),
softWrapColumn: not @isMini() and @getSoftWrapColumn(),
showIndentGuides: not @isMini() and @doesShowIndentGuide(),
softWrapColumn: @getSoftWrapColumn(),
showIndentGuides: @doesShowIndentGuide(),
atomicSoftTabs: params.atomicSoftTabs ? true,
tabLength: tabLength,
ratioForCharacter: @ratioForCharacter.bind(this),