Merge pull request #1244 from ajaxorg/cmdLine

VIM mode. Fix count handling for dd yy p P
This commit is contained in:
Ruben Daniels 2013-03-15 10:17:01 -07:00
commit b5a5d327de
8 changed files with 119 additions and 50 deletions

View file

@ -92,6 +92,12 @@ var cmdLine = new layout.singleLineEditor(consoleEl);
cmdLine.editor = env.editor;
env.editor.cmdLine = cmdLine;
env.editor.showCommandLine = function(val) {
this.cmdLine.focus();
if (typeof val == "string")
this.cmdLine.setValue(val, 1);
};
/**
* This demonstrates how you can define commands and bind shortcuts to them.
*/