(view: EditorView | null, vimMode: boolean)
| 94 | // --------------------------------------------------------------------------- |
| 95 | |
| 96 | export function isEditorInsertMode(view: EditorView | null, vimMode: boolean): boolean { |
| 97 | if (!view || !vimMode) return false |
| 98 | const cm = getCM(view) |
| 99 | return cm?.state.vim?.insertMode === true |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * True when codemirror-vim is mid-command, waiting for a character or motion |
no outgoing calls
no test coverage detected