From c5aa6705693ced9afa4ee67cce033d4b76260fe0 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Mon, 6 May 2013 16:17:28 -0700 Subject: [PATCH] Document methods as internal --- src/app/edit-session.coffee | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/src/app/edit-session.coffee b/src/app/edit-session.coffee index b2945e3d7..ebbcc10f7 100644 --- a/src/app/edit-session.coffee +++ b/src/app/edit-session.coffee @@ -361,18 +361,6 @@ class EditSession # Returns an {Array} of {String}s. getCursorScopes: -> @getCursor().getScopes() - # Determines whether the {Editor} will auto indent rows. - # - # Returns a {Boolean}. - shouldAutoIndent: -> - config.get("editor.autoIndent") - - # Determines whether the {Editor} will auto indent pasted text. - # - # Returns a {Boolean}. - shouldAutoIndentPastedText: -> - config.get("editor.autoIndentOnPaste") - # Inserts text at the current cursor positions # # text - A {String} representing the text to insert. @@ -1247,10 +1235,6 @@ class EditSession @mergeIntersectingSelections(options) return - # Internal: - inspect: -> - JSON.stringify @serialize() - preserveCursorPositionOnBufferReload: -> cursorPosition = null @subscribe @buffer, "will-reload", => @@ -1273,12 +1257,21 @@ class EditSession ### Internal ### + shouldAutoIndent: -> + config.get("editor.autoIndent") + + shouldAutoIndentPastedText: -> + config.get("editor.autoIndentOnPaste") + transact: (fn) -> @buffer.transact(fn) commit: -> @buffer.commit() abort: -> @buffer.abort() + inspect: -> + JSON.stringify @serialize() + logScreenLines: (start, end) -> @displayBuffer.logLines(start, end) handleGrammarChange: ->