Restore selection when undoing an insert newline below

This commit is contained in:
Kevin Sawicki
2013-02-20 14:01:48 -08:00
parent b14099c10d
commit 881efd9c5d
2 changed files with 11 additions and 2 deletions

View File

@@ -171,8 +171,9 @@ class EditSession
@insertText('\n')
insertNewlineBelow: ->
@moveCursorToEndOfLine()
@insertNewline()
@transact =>
@moveCursorToEndOfLine()
@insertNewline()
insertNewlineAbove: ->
@transact =>