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:
Zef Hemel
2013-09-06 10:33:08 +02:00
parent 1fa691693e
commit 060e86d6ca

View File

@@ -226,7 +226,7 @@ var Autocomplete = function() {
this.updateCompletions = function(keepPopupPosition) {
if (keepPopupPosition && this.base && this.completions) {
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)
return;
this.completions.setFilter(prefix);