提交 9eeb9e69 编写于 作者: A Alex Dima

#37643: Fix off-by-one issue

上级 3cda01e0
......@@ -420,7 +420,7 @@ export class TextModelWithTokens extends TextModel implements editorCommon.IToke
let position = this.validatePosition(_position);
let lineContent = this.getLineContent(position.lineNumber);
if (this._invalidLineStartIndex <= position.lineNumber) {
if (this._invalidLineStartIndex <= position.lineNumber - 1) {
// this line is not tokenized
return getWordAtText(
position.column,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册