mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
Set/get text using edit session instead of buffer
This commit is contained in:
parent
2d897ba415
commit
1ccf026a83
@ -621,11 +621,11 @@ class Editor extends View
|
|||||||
# Public: Replaces the current buffer contents.
|
# Public: Replaces the current buffer contents.
|
||||||
#
|
#
|
||||||
# text - A {String} containing the new buffer contents.
|
# text - A {String} containing the new buffer contents.
|
||||||
setText: (text) -> @getBuffer().setText(text)
|
setText: (text) -> @activeEditSession.setText(text)
|
||||||
# Public: Retrieves the current buffer contents.
|
# Public: Retrieves the current buffer contents.
|
||||||
#
|
#
|
||||||
# Returns a {String}.
|
# Returns a {String}.
|
||||||
getText: -> @getBuffer().getText()
|
getText: -> @activeEditSession.getText()
|
||||||
# Public: Retrieves the current buffer's file path.
|
# Public: Retrieves the current buffer's file path.
|
||||||
#
|
#
|
||||||
# Returns a {String}.
|
# Returns a {String}.
|
||||||
|
Loading…
Reference in New Issue
Block a user