mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Always place cursor at end of selection after inserting text
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user