diff options
author | Eduardo Canellas <[email protected]> | 2021-05-24 17:09:26 +0100 |
---|---|---|
committer | Eduardo Canellas <[email protected]> | 2021-05-24 17:17:28 +0100 |
commit | 3dce8a39245b135dea677cd7da351e48b021757d (patch) | |
tree | d28408e217fc0795ffd996758e7da0976920e181 /editors/code | |
parent | 05fc97e31b1d04bf5d5885edd98a1510f0931a62 (diff) |
fix: cursor position after item move command
closes Item movers need some fixes #8492
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/src/snippets.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
52 | } else { | 52 | } else { |
53 | builder.replace(indel.range, indel.newText); | 53 | builder.replace(indel.range, indel.newText); |
54 | } | 54 | } |
55 | lineDelta = countLines(indel.newText) - (indel.range.end.line - indel.range.start.line); | 55 | lineDelta += countLines(indel.newText) - (indel.range.end.line - indel.range.start.line); |
56 | } | 56 | } |
57 | }); | 57 | }); |
58 | if (selections.length > 0) editor.selections = selections; | 58 | if (selections.length > 0) editor.selections = selections; |