提交 f031f5ea 编写于 作者: A Alex Dima

Fixes #36873: Do not return undefined from `_readPixelOffset`

上级 d00ad812
......@@ -397,7 +397,7 @@ class RenderedViewLine implements IRenderedViewLine {
this._pixelOffsetCache = null;
if (!containsRTL || this._characterMapping.length === 0 /* the line is empty */) {
this._pixelOffsetCache = new Int32Array(this._characterMapping.length + 1);
this._pixelOffsetCache = new Int32Array(Math.max(2, this._characterMapping.length + 1));
for (let column = 0, len = this._characterMapping.length; column <= len; column++) {
this._pixelOffsetCache[column] = -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册