Autoscroll to the last cursor in model when inserting text

Fixes #2787
This commit is contained in:
Nathan Sobo
2014-07-01 11:34:36 -06:00
parent d4a7bff525
commit e93e4e9333
2 changed files with 12 additions and 0 deletions

View File

@@ -315,6 +315,7 @@ class Selection extends Model
wasReversed = @isReversed()
@clear()
@cursor.needsAutoscroll = @cursor.isLastCursor()
@cursor.autoscroll() if @editor.manageScrollPosition and @cursor.isLastCursor()
if options.indentBasis? and not options.autoIndent
text = @normalizeIndents(text, options.indentBasis)