ace.session does not exist (not in the no-conflict mode exist), so let's use this.editor.session instead.
This commit is contained in:
parent
1fa691693e
commit
060e86d6ca
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ var Autocomplete = function() {
|
||||||
this.updateCompletions = function(keepPopupPosition) {
|
this.updateCompletions = function(keepPopupPosition) {
|
||||||
if (keepPopupPosition && this.base && this.completions) {
|
if (keepPopupPosition && this.base && this.completions) {
|
||||||
var pos = this.editor.getCursorPosition();
|
var pos = this.editor.getCursorPosition();
|
||||||
var prefix = ace.session.getTextRange({start: this.base, end: pos});
|
var prefix = this.editor.session.getTextRange({start: this.base, end: pos});
|
||||||
if (prefix == this.completions.filterText)
|
if (prefix == this.completions.filterText)
|
||||||
return;
|
return;
|
||||||
this.completions.setFilter(prefix);
|
this.completions.setFilter(prefix);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue