Don't use config in TextEditorPresenter

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2016-07-27 14:56:36 -07:00
committed by Nathan Sobo
parent 3d796df401
commit 3f8b6138dc
4 changed files with 43 additions and 76 deletions

View File

@@ -79,6 +79,7 @@ class TextEditor extends Model
registered: false
atomicSoftTabs: true
invisibles: null
showLineNumbers: true
Object.defineProperty @prototype, "element",
get: -> @getElement()
@@ -3351,10 +3352,20 @@ class TextEditor extends Model
shouldAutoIndentOnPaste: -> @autoIndentOnPaste
setScrollPastEnd: (@scrollPastEnd) ->
setScrollPastEnd: (scrollPastEnd) ->
if scrollPastEnd isnt @scrollPastEnd
@scrollPastEnd = scrollPastEnd
@presenter?.didChangeScrollPastEnd()
getScrollPastEnd: -> @scrollPastEnd
setShowLineNumbers: (showLineNumbers) ->
if showLineNumbers isnt @showLineNumbers
@showLineNumbers = showLineNumbers
@presenter?.didChangeShowLineNumbers()
doesShowLineNumbers: -> @showLineNumbers
setUndoGroupingInterval: (@undoGroupingInterval) ->
getUndoGroupingInterval: -> @undoGroupingInterval