Skip to content

Commit

Permalink
Select word as you move
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Jan 8, 2024
1 parent f39b448 commit 8ec1e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/motions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8ec1e9d

Please sign in to comment.