Don't clip screen range when autoscrolling from Cursor

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Antonio Scandurra
2017-05-11 19:25:14 +02:00
committed by Nathan Sobo
parent c59e972f42
commit 2f2f481fb5
2 changed files with 3 additions and 2 deletions

View File

@@ -3485,7 +3485,7 @@ class TextEditor extends Model
@getElement().scrollToBottom()
scrollToScreenRange: (screenRange, options = {}) ->
screenRange = @clipScreenRange(screenRange)
screenRange = @clipScreenRange(screenRange) if options.clip isnt false
scrollEvent = {screenRange, options}
@component?.didRequestAutoscroll(scrollEvent)
@emitter.emit "did-request-autoscroll", scrollEvent