From 9ede5f85e34cdbbda123eb8a8651d46fe03ee6b2 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Sat, 7 Dec 2013 14:07:46 -0800 Subject: [PATCH] Use the ::editorWidthInChars property directly --- src/display-buffer.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. #