From 3c0b9ee5226515a721b3b66daf181bd6a2b0e634 Mon Sep 17 00:00:00 2001 From: Caleb John Date: Mon, 12 Oct 2020 03:01:40 -0600 Subject: [PATCH] Desktop: Actually enter insert mode after pressing o/O in CodeMirror vim mode (#3897) --- .../gui/NoteEditor/NoteBody/CodeMirror/utils/useListIdent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useListIdent.ts b/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useListIdent.ts index bdd2cf4581f..7a681a5018c 100644 --- a/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useListIdent.ts +++ b/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useListIdent.ts @@ -141,7 +141,7 @@ export default function useListIdent(CodeMirror: any) { cm.setCursor({ line: anchor.line, ch: line.length }); cm.execCommand('insertListElement'); - cm.setOption('disableInput', true); + CodeMirror.Vim.handleKey(cm, 'i', 'macro'); }; CodeMirror.commands.insertListElement = function(cm: any) {