diff --git a/src/editor.coffee b/src/editor.coffee index 13b99e09e..3cb2ade16 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -51,7 +51,7 @@ class Editor extends Model @delegatesMethods 'foldAll', 'unfoldAll', 'foldAllAtIndentLevel', 'foldBufferRow', 'unfoldBufferRow', 'suggestedIndentForBufferRow', 'autoIndentBufferRow', 'autoIndentBufferRows', - 'autoDecreaseIndentForBufferRow', 'toggleLineCommentsForBufferRows', 'isBufferRowFoldable', + 'autoDecreaseIndentForBufferRow', 'toggleLineCommentsForBufferRows', 'isFoldableAtBufferRow', toProperty: 'languageMode' constructor: ({@softTabs, initialLine, tabLength, softWrap, @displayBuffer, buffer, registerEditor, suppressCursorCreation}) -> diff --git a/src/gutter.coffee b/src/gutter.coffee index e97a4a12a..6005b919a 100644 --- a/src/gutter.coffee +++ b/src/gutter.coffee @@ -209,7 +209,7 @@ class Gutter extends View classes = "line-number line-number-#{row}" classes += ' fold' if editor.isFoldedAtBufferRow(row) - classes += ' foldable' if row isnt lastRow and editor.isBufferRowFoldable(row) + classes += ' foldable' if row isnt lastRow and editor.isFoldableAtBufferRow(row) rowValuePadding = _.multiplyString(' ', maxDigits - rowValue.length) diff --git a/src/language-mode.coffee b/src/language-mode.coffee index 6e3e4a35f..235fa72bc 100644 --- a/src/language-mode.coffee +++ b/src/language-mode.coffee @@ -162,7 +162,7 @@ class LanguageMode return [startRow, endRow] if startRow isnt endRow rowRangeForCodeFoldAtBufferRow: (bufferRow) -> - return null unless @isBufferRowFoldable(bufferRow) + return null unless @isFoldableAtBufferRow(bufferRow) startIndentLevel = @editor.indentationForBufferRow(bufferRow) scopes = @editor.scopesForBufferPosition([bufferRow, 0]) @@ -178,7 +178,7 @@ class LanguageMode [bufferRow, foldEndRow] - isBufferRowFoldable: (bufferRow) -> + isFoldableAtBufferRow: (bufferRow) -> return false if @editor.isBufferRowBlank(bufferRow) nextNonEmptyRow = @editor.nextNonBlankBufferRow(bufferRow) return false unless nextNonEmptyRow?