From 79e83a096cfd397b12e22caf461e18a25767006e Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 10 May 2017 11:03:55 -0700 Subject: [PATCH] correct afterEnterText of selection --- src/vs/editor/common/modes/languageConfigurationRegistry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/common/modes/languageConfigurationRegistry.ts b/src/vs/editor/common/modes/languageConfigurationRegistry.ts index c4c5ee6a9e1..dcac2128476 100644 --- a/src/vs/editor/common/modes/languageConfigurationRegistry.ts +++ b/src/vs/editor/common/modes/languageConfigurationRegistry.ts @@ -289,7 +289,7 @@ export class LanguageConfigurationRegistryImpl { afterEnterText = scopedLineText.substr(range.startColumn - 1 - scopedLineTokens.firstCharOffset); } else { 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;