mirror of
https://github.com/atom/atom.git
synced 2026-01-28 00:08:13 -05:00
Don't use config in TextEditor::getSoftWrapColumn
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user