diff --git a/src/display-buffer.coffee b/src/display-buffer.coffee index a899905aa..b07cb35e8 100644 --- a/src/display-buffer.coffee +++ b/src/display-buffer.coffee @@ -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. #