From 8ec1e9df5ed5d24f626ad174401cb6b3f65897f5 Mon Sep 17 00:00:00 2001 From: jasonwilliams Date: Mon, 8 Jan 2024 22:28:31 +0000 Subject: [PATCH] Select word as you move --- src/actions/motions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/motions.ts b/src/actions/motions.ts index b44daf32..d88b5f5e 100644 --- a/src/actions/motions.ts +++ b/src/actions/motions.ts @@ -307,7 +307,7 @@ function execMotion(vimState: HelixState, editor: vscode.TextEditor, motion: (ar selectionIndex: i, vimState: vimState, }); - return new vscode.Selection(newPosition, newPosition); + return new vscode.Selection(selection.active, newPosition); } else if (vimState.mode === Mode.Visual) { const vimSelection = vscodeToVimVisualSelection(document, selection); const motionPosition = motion({