提交 79e83a09 编写于 作者: R rebornix

correct afterEnterText of selection

上级 3a89761e
...@@ -289,7 +289,7 @@ export class LanguageConfigurationRegistryImpl { ...@@ -289,7 +289,7 @@ export class LanguageConfigurationRegistryImpl {
afterEnterText = scopedLineText.substr(range.startColumn - 1 - scopedLineTokens.firstCharOffset); afterEnterText = scopedLineText.substr(range.startColumn - 1 - scopedLineTokens.firstCharOffset);
} else { } else {
let endScopedLineTokens = this.getScopedLineTokens(model, range.endLineNumber); let endScopedLineTokens = this.getScopedLineTokens(model, range.endLineNumber);
afterEnterText = endScopedLineTokens.getLineContent().substr(range.endColumn - 1 - endScopedLineTokens.firstCharOffset); afterEnterText = endScopedLineTokens.getLineContent().substr(range.endColumn - 1);
} }
let lineNumber = range.startLineNumber; let lineNumber = range.startLineNumber;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册