From 3dce8a39245b135dea677cd7da351e48b021757d Mon Sep 17 00:00:00 2001 From: Eduardo Canellas Date: Mon, 24 May 2021 13:09:26 -0300 Subject: fix: cursor position after item move command closes Item movers need some fixes #8492 --- editors/code/src/snippets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code') diff --git a/editors/code/src/snippets.ts b/editors/code/src/snippets.ts index 58f7aa128..a409e5296 100644 --- a/editors/code/src/snippets.ts +++ b/editors/code/src/snippets.ts @@ -52,7 +52,7 @@ export async function applySnippetTextEdits(editor: vscode.TextEditor, edits: vs } else { builder.replace(indel.range, indel.newText); } - lineDelta = countLines(indel.newText) - (indel.range.end.line - indel.range.start.line); + lineDelta += countLines(indel.newText) - (indel.range.end.line - indel.range.start.line); } }); if (selections.length > 0) editor.selections = selections; -- cgit v1.2.3