Fix live auto completion.
Didn't set completers when enabling it.
This commit is contained in:
parent
0e3abd3f41
commit
9391e0b9bb
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue