logCursorScope works properly

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-09-28 09:50:09 -07:00
committed by Nathan Sobo
parent f2cc859a4c
commit 875852d1de

View File

@@ -152,7 +152,7 @@ class Editor extends View
'show-next-buffer': @loadNextEditSession
'show-previous-buffer': @loadPreviousEditSession
'toggle-line-comments': @toggleLineCommentsInSelection
'log-cursor-scope': @logCurrsorScope
'log-cursor-scope': @logCursorScope
for name, method of editorBindings
do (name, method) =>
@@ -249,8 +249,8 @@ class Editor extends View
bufferRowsForScreenRows: (startRow, endRow) -> @activeEditSession.bufferRowsForScreenRows(startRow, endRow)
stateForScreenRow: (row) -> @activeEditSession.stateForScreenRow(row)
logCurrsorScope: ->
console.log @activeEditSession.tokenizedBuffer.scopesForPosition(@getCursorBufferPosition)
logCursorScope: ->
console.log @activeEditSession.tokenizedBuffer.scopesForPosition(@getCursorBufferPosition())
pageDown: ->
newScrollTop = @scrollTop() + @scrollView[0].clientHeight