Handle highlight end rows with 'before' blocks in addition to 'after'

This commit is contained in:
Nathan Sobo
2017-08-20 07:32:44 -06:00
parent f33051da33
commit 835ed10f7c
2 changed files with 19 additions and 9 deletions

View File

@@ -1316,7 +1316,7 @@ class TextEditorComponent {
const {start, end} = highlight.screenRange
highlight.startPixelTop = this.pixelPositionAfterBlocksForRow(start.row)
highlight.startPixelLeft = this.pixelLeftForRowAndColumn(start.row, start.column)
highlight.endPixelTop = this.pixelPositionBeforeBlocksForRow(end.row) + this.getLineHeight()
highlight.endPixelTop = this.pixelPositionAfterBlocksForRow(end.row) + this.getLineHeight()
highlight.endPixelLeft = this.pixelLeftForRowAndColumn(end.row, end.column)
}
this.decorationsToRender.highlights.set(tileRow, highlights)