aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-24 17:28:28 +0100
committerGitHub <[email protected]>2021-05-24 17:28:28 +0100
commita59d41c1dfff1bcd34de880fddd3ca1f22e3f9e6 (patch)
tree5299732cbae0ec27081d2cfe3b22a12a94000a8a
parentc139eff5b8a764fe64ec28c3028d3deb23c14adc (diff)
parent3dce8a39245b135dea677cd7da351e48b021757d (diff)
Merge #8967
8967: fix cursor position after item move command r=matklad a=eduardocanellas Co-authored-by: Eduardo Canellas <[email protected]>
-rw-r--r--editors/code/src/snippets.ts2
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;