Skip to content

Commit

Permalink
fix: skip rendering empty token text
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 18, 2021
1 parent 299192e commit 6bd1921
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mixins/canvas-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ function drawLines (firstRow, lastRow, offsetRow, lineHeight, charHeight, charWi
const numTokenToRender = Math.min(numToken, maxTokensInOneLine)
for (let iToken = 0; iToken < numTokenToRender; iToken++) {
const token = editorTokensForScreenRow[iToken]
if (token.text === '') { continue }
const tokenText = token.text.replace(invisibleRegExp, ' ')
const tokenScopes = token.scopes

Expand Down

0 comments on commit 6bd1921

Please sign in to comment.