From ae942b87baecc5f0e121fbc91dcfef6c81dfd651 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 6 Oct 2016 11:50:42 +0200 Subject: [PATCH] Put back missing comment that was accidentally deleted with decaf --- src/lines-tile-component.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lines-tile-component.js b/src/lines-tile-component.js index a05762fc5..6053cea19 100644 --- a/src/lines-tile-component.js +++ b/src/lines-tile-component.js @@ -199,6 +199,9 @@ module.exports = class LinesTileComponent { } if (lineText.endsWith(this.presenter.displayLayer.foldCharacter)) { + // Insert a zero-width non-breaking whitespace, so that LinesYardstick can + // take the fold-marker::after pseudo-element into account during + // measurements when such marker is the last character on the line. const textNode = this.domElementPool.buildText(ZERO_WIDTH_NBSP) lineNode.appendChild(textNode) textNodes.push(textNode)