mirror of
https://github.com/atom/atom.git
synced 2026-02-07 13:14:55 -05:00
Add TextEditor.prototype.tokensForScreenRow for testing purposes
This commit is contained in:
@@ -778,6 +778,10 @@ class TextEditor extends Model
|
||||
lineTextForScreenRow: (screenRow) ->
|
||||
@screenLineForScreenRow(screenRow)?.lineText
|
||||
|
||||
tokensForScreenRow: (screenRow) ->
|
||||
for tagCode in @screenLineForScreenRow(screenRow).tagCodes when @displayLayer.isOpenTagCode(tagCode)
|
||||
@displayLayer.tagForCode(tagCode)
|
||||
|
||||
screenLineForScreenRow: (screenRow) ->
|
||||
@displayLayer.getScreenLines(screenRow, screenRow + 1)[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user