mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Add setTextInBufferRange to EditSession
We should probably rename TextBuffer.change to .setTextInRange as well
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user