mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Allow scrollPastEnd to be updated in TextEditor.prototype.update
This commit is contained in:
@@ -189,7 +189,7 @@ class TextEditor extends Model
|
||||
update: (params) ->
|
||||
{
|
||||
softTabs, tabLength, softWrapped, mini, placeholderText, lineNumberGutterVisible,
|
||||
showInvisibles, ignoreInvisibles, editorWidthInChars
|
||||
showInvisibles, ignoreInvisibles, editorWidthInChars, scrollPastEnd
|
||||
} = params
|
||||
|
||||
resetDisplayLayer = false
|
||||
@@ -226,6 +226,9 @@ class TextEditor extends Model
|
||||
@setEditorWidthInChars(editorWidthInChars, false)
|
||||
resetDisplayLayer = true
|
||||
|
||||
if scrollPastEnd? and scrollPastEnd isnt @scrollPastEnd
|
||||
@setScrollPastEnd(scrollPastEnd)
|
||||
|
||||
if resetDisplayLayer
|
||||
@resetDisplayLayer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user