Use the ::editorWidthInChars property directly

This commit is contained in:
Nathan Sobo
2013-12-07 14:07:46 -08:00
parent 640fd0051b
commit 9ede5f85e3

View File

@@ -102,11 +102,10 @@ class DisplayBuffer extends Model
@updateWrappedScreenLines()
getSoftWrapColumn: ->
editorWidthInChars = @editorWidthInChars
if atom.config.get('editor.softWrapAtPreferredLineLength')
Math.min(editorWidthInChars, atom.config.getPositiveInt('editor.preferredLineLength', editorWidthInChars))
Math.min(@editorWidthInChars, atom.config.getPositiveInt('editor.preferredLineLength', @editorWidthInChars))
else
editorWidthInChars
@editorWidthInChars
# Gets the screen line for the given screen row.
#