Add setTextInBufferRange to EditSession

We should probably rename TextBuffer.change to .setTextInRange as well
This commit is contained in:
Nathan Sobo
2013-08-06 19:00:36 -06:00
parent 88603e2771
commit 19545e1113

View File

@@ -1042,6 +1042,8 @@ class EditSession
getTextInBufferRange: (range) ->
@buffer.getTextInRange(range)
setTextInBufferRange: (range, text) -> @getBuffer().change(range, text)
# Retrieves the range for the current paragraph.
#
# A paragraph is defined as a block of text surrounded by empty lines.