[incremental search] using showCommandLine()

This commit is contained in:
Robert Krahn 2013-03-17 06:22:50 -07:00
commit a11c06a589

View file

@ -182,9 +182,9 @@ oop.inherits(IncrementalSearch, Search);
} }
this.message = function(msg) { this.message = function(msg) {
var cmdLine = this.$editor && this.$editor.cmdLine; if (this.$editor.showCommandLine) {
if (cmdLine) { this.$editor.showCommandLine(msg);
cmdLine.setValue(msg, 1); this.$editor.focus();
} else { } else {
console.log(msg); console.log(msg);
} }