Don't use config in TextEditor::getSoftWrapColumn

This commit is contained in:
Max Brunsfeld
2016-07-11 13:07:44 -07:00
parent eb97c61655
commit 596cc13f6a

View File

@@ -2832,8 +2832,8 @@ class TextEditor extends Model
getSoftWrapColumn: ->
scopeDescriptor = @getRootScopeDescriptor()
if @isSoftWrapped()
if @config.get('editor.softWrapAtPreferredLineLength', scope: scopeDescriptor)
Math.min(@getEditorWidthInChars(), @config.get('editor.preferredLineLength', scope: scopeDescriptor))
if @softWrapAtPreferredLineLength
Math.min(@getEditorWidthInChars(), @preferredLineLength)
else
@getEditorWidthInChars()
else