mirror of
https://github.com/AdaCore/ace.git
synced 2026-02-12 13:03:02 -08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user