fix(editor): allow multi selection while in vim mode (#1224)

This fixes an issue with visual block selection in vim mode
pull/1212/head^2
Max Richter 2025-01-30 14:53:53 +01:00 committed by GitHub
parent 548bcfd239
commit 0c41927dfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -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)