diff --git a/keymap/vim.js b/keymap/vim.js index 54f2827248400e639b6e4746f92432347ddae69d..b7e8d8588937ec3798576df15ab07b135fc0d54c 100644 --- a/keymap/vim.js +++ b/keymap/vim.js @@ -1048,7 +1048,7 @@ }; function HistoryController() { this.historyBuffer = []; - this.iterator; + this.iterator = 0; this.initialPrefix = null; } HistoryController.prototype = { @@ -3290,8 +3290,6 @@ line = cm.getLine(lineNum); pos = (dir > 0) ? 0 : line.length; } - // Should never get here. - throw new Error('The impossible happened.'); } /**