1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Desktop: Actually enter insert mode after pressing o/O in CodeMirror vim mode (#3897)

This commit is contained in:
Caleb John 2020-10-12 03:01:40 -06:00 committed by GitHub
parent 987890ba98
commit 3c0b9ee522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ export default function useListIdent(CodeMirror: any) {
cm.setCursor({ line: anchor.line, ch: line.length }); cm.setCursor({ line: anchor.line, ch: line.length });
cm.execCommand('insertListElement'); cm.execCommand('insertListElement');
cm.setOption('disableInput', true); CodeMirror.Vim.handleKey(cm, 'i', 'macro');
}; };
CodeMirror.commands.insertListElement = function(cm: any) { CodeMirror.commands.insertListElement = function(cm: any) {