Always place cursor at end of selection after inserting text

This commit is contained in:
Nathan Sobo
2012-04-05 17:22:16 -06:00
parent 84ba78c55d
commit 158315ffaa
2 changed files with 8 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ class Selection extends View
{ text, shouldOutdent } = @autoIndentText(text)
@editor.buffer.change(@getBufferRange(), text)
@autoOutdentText() if shouldOutdent
@cursor.setScreenPosition(@getScreenRange().end)
@clearSelection()
autoIndentText: (text) ->