mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Use the ::editorWidthInChars property directly
This commit is contained in:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user