diff --git a/lib/ace/keyboard/vim.js b/lib/ace/keyboard/vim.js index a4f1c39d..7e8ec739 100644 --- a/lib/ace/keyboard/vim.js +++ b/lib/ace/keyboard/vim.js @@ -96,7 +96,7 @@ exports.handler = { key = data.inputChar; } - if (hashId == -1 || hashId == 1) { + if (hashId == -1 || hashId == 1 || hashId == 0 && key.length > 1) { if (cmds.inputBuffer.idle && startCommands[key]) return startCommands[key]; return { diff --git a/lib/ace/keyboard/vim/maps/motions.js b/lib/ace/keyboard/vim/maps/motions.js index 036930ec..37200183 100644 --- a/lib/ace/keyboard/vim/maps/motions.js +++ b/lib/ace/keyboard/vim/maps/motions.js @@ -222,7 +222,11 @@ module.exports = { "l": { nav: function(editor) { - editor.navigateRight(); + var pos = editor.getCursorPosition(); + var col = pos.column; + var lineLen = editor.session.getLine(pos.row).length; + if (lineLen && col !== lineLen) + editor.navigateRight(); }, sel: function(editor) { var pos = editor.getCursorPosition(); @@ -575,7 +579,6 @@ module.exports = { nav: function(editor, range, count, param) { editor.selection.clearSelection(); keepScrollPosition(editor, editor.gotoPageUp); - }, sel: function(editor, range, count, param) { keepScrollPosition(editor, editor.selectPageUp); diff --git a/lib/ace/mode/css_worker.js b/lib/ace/mode/css_worker.js index 09802cad..b542bda9 100644 --- a/lib/ace/mode/css_worker.js +++ b/lib/ace/mode/css_worker.js @@ -68,7 +68,7 @@ oop.inherits(Worker, Mirror); ruleNames.forEach(function(x) { delete all[x]; }); - console.log(all) + this.ruleset = all; } this.doc.getValue() && this.deferredUpdate.schedule(100);