Skip to content

Commit 899d6a3

Browse files
adrianheinemarijnh
authored andcommitted
[vim] Don't insert chars if key is not bound
1 parent 96099e3 commit 899d6a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

keymap/vim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@
866866
if (vim.insertMode) { command = handleKeyInsertMode(); }
867867
else { command = handleKeyNonInsertMode(); }
868868
if (command === false) {
869-
return undefined;
869+
return !vim.insertMode && key.length === 1 ? function() { return true; } : undefined;
870870
} else if (command === true) {
871871
// TODO: Look into using CodeMirror's multi-key handling.
872872
// Return no-op since we are caching the key. Counts as handled, but

0 commit comments

Comments
 (0)