Disable soft wrap on mini editors

This commit is contained in:
Wliu
2017-02-06 22:40:00 -05:00
committed by GitHub
parent 8662062325
commit 42dda1a771

View File

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