mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Add getter and setter for buffer text
This commit is contained in:
committed by
Kevin Sawicki
parent
eec6518278
commit
b1527a7982
@@ -268,6 +268,17 @@ class EditSession
|
||||
#
|
||||
# Returns a {String}.
|
||||
getPath: -> @buffer.getPath()
|
||||
|
||||
# Public: Retrieves the current buffer's text.
|
||||
#
|
||||
# Return a {String}.
|
||||
getText: -> @buffer.getText()
|
||||
|
||||
# Public: Set the current buffer's text content.
|
||||
#
|
||||
# Return a {String}.
|
||||
setText: (text) -> @buffer.setText(text)
|
||||
|
||||
# Public: Retrieves the current buffer.
|
||||
#
|
||||
# Returns a {String}.
|
||||
|
||||
Reference in New Issue
Block a user