diff --git a/src/app/edit-session.coffee b/src/app/edit-session.coffee index 14647bc8f..941321fed 100644 --- a/src/app/edit-session.coffee +++ b/src/app/edit-session.coffee @@ -383,7 +383,7 @@ class EditSession # {Delegates to: DisplayBuffer.bufferRowsForScreenRows} bufferRowsForScreenRows: (startRow, endRow) -> @displayBuffer.bufferRowsForScreenRows(startRow, endRow) - # {Delegates to: DisplayBuffer.bufferRowsForScreenRows} + # {Delegates to: DisplayBuffer.scopesForBufferPosition} scopesForBufferPosition: (bufferPosition) -> @displayBuffer.scopesForBufferPosition(bufferPosition) # {Delegates to: DisplayBuffer.tokenForBufferPosition} diff --git a/src/app/editor.coffee b/src/app/editor.coffee index 317c0dbb4..a38c92891 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -1560,6 +1560,10 @@ class Editor extends View reloadGrammar: -> @activeEditSession.reloadGrammar() + # {Delegates to: EditSession.scopesForBufferPosition} + scopesForBufferPosition: (bufferPosition) -> + @activeEditSession.scopesForBufferPosition(bufferPosition) + # Copies the current file path to the native clipboard. copyPathToPasteboard: -> path = @getPath()