From 1ccf026a835f18df937561075a7de88416478627 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 23 Apr 2013 08:54:43 -0700 Subject: [PATCH] Set/get text using edit session instead of buffer --- src/app/editor.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/editor.coffee b/src/app/editor.coffee index e0ac98c00..516ce797a 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -621,11 +621,11 @@ class Editor extends View # Public: Replaces the current 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. # # Returns a {String}. - getText: -> @getBuffer().getText() + getText: -> @activeEditSession.getText() # Public: Retrieves the current buffer's file path. # # Returns a {String}.