Fix live auto completion.

Didn't set completers when enabling it.
This commit is contained in:
Homa Wong 2014-04-20 15:14:09 -07:00
commit 9391e0b9bb

View file

@ -175,6 +175,7 @@ require("../config").defineOptions(Editor.prototype, "editor", {
set: function(val) {
if (val) {
// On each change automatically trigger the autocomplete
this.completers = completers;
this.commands.on('afterExec', doLiveAutocomplete);
} else {
this.commands.removeListener('afterExec', doLiveAutocomplete);