mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
logCursorScope works properly
This commit is contained in:
committed by
Nathan Sobo
parent
f2cc859a4c
commit
875852d1de
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user