提交 3751acf5 编写于 作者: A Alex Dima

Fixes #43740

上级 3efe22f1
......@@ -202,7 +202,7 @@ export class DecorationsOverlay extends DynamicViewOverlay {
}
let lineIndex = lineNumber - startLineNumber;
if (lineIndex < 0 || lineIndex >= this._renderResult.length) {
throw new Error('Unexpected render request');
return '';
}
return this._renderResult[lineIndex];
}
......
......@@ -193,8 +193,8 @@ export class GlyphMarginOverlay extends DedupOverlay {
}
let lineIndex = lineNumber - startLineNumber;
if (lineIndex < 0 || lineIndex >= this._renderResult.length) {
throw new Error('Unexpected render request');
return '';
}
return this._renderResult[lineIndex];
}
}
\ No newline at end of file
}
......@@ -122,7 +122,7 @@ export class IndentGuidesOverlay extends DynamicViewOverlay {
}
let lineIndex = lineNumber - startLineNumber;
if (lineIndex < 0 || lineIndex >= this._renderResult.length) {
throw new Error('Unexpected render request');
return '';
}
return this._renderResult[lineIndex];
}
......
......@@ -162,7 +162,7 @@ export class LineNumbersOverlay extends DynamicViewOverlay {
}
let lineIndex = lineNumber - startLineNumber;
if (lineIndex < 0 || lineIndex >= this._renderResult.length) {
throw new Error('Unexpected render request');
return '';
}
return this._renderResult[lineIndex];
}
......
......@@ -387,7 +387,7 @@ export class SelectionsOverlay extends DynamicViewOverlay {
}
let lineIndex = lineNumber - startLineNumber;
if (lineIndex < 0 || lineIndex >= this._renderResult.length) {
throw new Error('Unexpected render request');
return '';
}
return this._renderResult[lineIndex];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册