From 6a0b4d8fc0775b403bb5ae9ec48e66af5db62b6c Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 17 Aug 2016 12:04:57 -0600 Subject: [PATCH] Default autoWidth in getter method to match autoHeight --- src/text-editor.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 42cfaa9b5..093612e5e 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -144,7 +144,6 @@ class TextEditor extends Model @selections = [] @hasTerminatedPendingState = false - @autoWidth ?= false @mini ?= false @scrollPastEnd ?= true @showInvisibles ?= true @@ -3544,6 +3543,8 @@ class TextEditor extends Model getAutoHeight: -> @autoHeight ? true + getAutoWidth: -> @autoWidth ? false + setWidth: (width, reentrant=false) -> if reentrant @update({width}) @@ -3556,9 +3557,6 @@ class TextEditor extends Model Grim.deprecate("This is now a view method. Call TextEditorElement::getWidth instead.") @width - getAutoWidth: -> - @autoWidth - # Experimental: Scroll the editor such that the given screen row is at the # top of the visible area. setFirstVisibleScreenRow: (screenRow, fromView) ->