Pull from compnoent's rendered screen lines in tests

This commit is contained in:
Nathan Sobo
2017-03-18 20:03:57 -07:00
committed by Antonio Scandurra
parent 2cde4aea76
commit f58a249be1

View File

@@ -1534,8 +1534,8 @@ function lineNumberNodeForScreenRow (component, row) {
}
function lineNodeForScreenRow (component, row) {
const screenLine = component.getModel().screenLineForScreenRow(row)
return component.lineNodesByScreenLineId.get(screenLine.id)
const renderedScreenLine = component.renderedScreenLineForRow(row)
return component.lineNodesByScreenLineId.get(renderedScreenLine.id)
}
function textNodesForScreenRow (component, row) {