Skip to content

Commit

Permalink
fix(editor): allow multi selection while in vim mode (#1224)
Browse files Browse the repository at this point in the history
This fixes an issue with visual block selection in vim mode
  • Loading branch information
jim-fx authored Jan 30, 2025
1 parent 548bcfd commit 0c41927
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/editor_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ export function createEditorState(

// Enable vim mode, or not
[
...client.ui.viewState.uiOptions.vimMode ? [vim({ status: true })] : [],
...client.ui.viewState.uiOptions.vimMode
? [
vim({ status: true }),
EditorState.allowMultipleSelections.of(true),
]
: [],
],
[
...(readOnly || client.ui.viewState.uiOptions.forcedROMode)
Expand Down

0 comments on commit 0c41927

Please sign in to comment.