提交 c072037b 编写于 作者: R rebornix

Make substr column correct when indent paste

上级 69e53866
......@@ -461,7 +461,7 @@ export class AutoIndentOnPaste implements IEditorContribution {
range: new Range(range.startLineNumber, 1, range.startLineNumber, oldIndentation.length + 1),
text: newIndent
});
firstLineText = newIndent + firstLineText.substr(oldIndentation.length + 1);
firstLineText = newIndent + firstLineText.substr(oldIndentation.length);
}
if (range.startLineNumber !== range.endLineNumber) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册